/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../support/buffer/InterleavedLayout","../../core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl","../../lib/VertexAttribute"],(function(e,t,r,u){"use strict";function o(e){const o=t.newLayout().vec3f(u.VertexAttribute.POSITION);return e.normals&&o.vec2i16(u.VertexAttribute.NORMALCOMPRESSED,{glNormalized:!0}),e.textureCoordinates===r.TextureCoordinateAttributeType.Default?o.vec2f(u.VertexAttribute.UV0):e.textureCoordinates===r.TextureCoordinateAttributeType.Atlas&&(o.vec2f(u.VertexAttribute.UV0),o.vec4u16(u.VertexAttribute.UVREGION,{glNormalized:!0})),e.colors&&o.vec4u8(u.VertexAttribute.COLOR,{glNormalized:!0}),o.alignTo(4)}e.createVertexBufferLayout=o,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
