/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{hasNativeFloat16Array as e}from"../../../../../geometry/support/float16.js";import{BufferViewFloat as t,BufferViewFloat16 as o,BufferViewVec4Unorm8 as r,BufferViewUnorm8 as n,BufferViewVec4u8 as f,BufferViewUint8 as u}from"../../../../../geometry/support/buffer/BufferView.js";import{elementTypeSize as s}from"../../../../../geometry/support/buffer/types.js";class m{constructor(e,t,o){this.elementCount=e,this.elementType=t,this.bufferViewConstructor=o,this.byteSize=i(o)}}function i(e){return s(e.ElementType)*e.ElementCount}const p={u8:new m(1,"uint",u),vec4u8:new m(4,"uint",f),unorm8:new m(1,"float",n),vec4unorm8:new m(4,"float",r),f16:new m(1,"float",e?o:t),f32:new m(1,"float",t)};export{m as FieldCreationInfo,p as typeToCreationInfoMap};
