/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{hasNativeFloat16Array as e}from"../../../../../geometry/support/float16.js";import{BufferViewMat3f as t,BufferViewVec4f as o,BufferViewVec3f as f,BufferViewVec2f as n,BufferViewFloat as r,BufferViewVec4f16 as u,BufferViewFloat16 as m,BufferViewVec2Snorm16 as s,BufferViewSnorm16 as l,BufferViewVec4Unorm8 as w,BufferViewUnorm8 as a,BufferViewVec4u8 as c,BufferViewUint8 as i}from"../../../../../geometry/support/buffer/BufferView.js";import{elementTypeSize as p}from"../../../../../geometry/support/buffer/types.js";class v{constructor(e,t,o){this.elementCount=e,this.elementType=t,this.bufferViewConstructor=o,this.byteSize=y(o)}}function y(e){return p(e.ElementType)*e.ElementCount}const b={u8:new v(1,"uint",i),vec4u8:new v(4,"uint",c),unorm8:new v(1,"float",a),vec4unorm8:new v(4,"float",w),snorm16:new v(1,"float",l),vec2snorm16:new v(2,"float",s),f16:new v(1,"float",e?m:r),vec4f16:new v(4,"float",e?u:o),f32:new v(1,"float",r),vec2f32:new v(2,"float",n),vec3f32:new v(3,"float",f),vec4f32:new v(4,"float",o),mat3f32:new v(9,"float",t)};export{v as FieldCreationInfo,b as typeToCreationInfoMap};
