@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 866 B
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{hasNativeFloat16Array as e}from"../../../../../geometry/support/float16.js";import{BufferViewMat3f as t,BufferViewFloat as o,BufferViewFloat16 as r,BufferViewVec4Unorm8 as n,BufferViewUnorm8 as f,BufferViewVec4u8 as u,BufferViewUint8 as m}from"../../../../../geometry/support/buffer/BufferView.js";import{elementTypeSize as s}from"../../../../../geometry/support/buffer/types.js";class i{constructor(e,t,o){this.elementCount=e,this.elementType=t,this.bufferViewConstructor=o,this.byteSize=p(o)}}function p(e){return s(e.ElementType)*e.ElementCount}const l={u8:new i(1,"uint",m),vec4u8:new i(4,"uint",u),unorm8:new i(1,"float",f),vec4unorm8:new i(4,"float",n),f16:new i(1,"float",e?r:o),f32:new i(1,"float",o),mat3f32:new i(9,"float",t)};export{i as FieldCreationInfo,l as typeToCreationInfoMap};