/*
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","../../lib/VertexAttribute","./bufferWriterUtils"],(function(t,e,r,u){"use strict";const o=e.newLayout().vec3f(r.VertexAttribute.POSITION),i=e.newLayout().vec3f(r.VertexAttribute.POSITION).vec2f(r.VertexAttribute.UV0),n=e.newLayout().vec3f(r.VertexAttribute.POSITION).vec4u8(r.VertexAttribute.COLOR);let f=function(){function t(t){this.vertexBufferLayout=t}var e=t.prototype;return e.allocate=function(t){return this.vertexBufferLayout.createBuffer(t)},e.elementCount=function(t){return t.indices.get(r.VertexAttribute.POSITION).length},e.write=function(t,e,r,o){u.writeDefaultAttributes(e,this.vertexBufferLayout,t.transformation,t.invTranspTransformation,r,o)},t}();t.DefaultBufferWriter=f,t.PositionColorLayout=n,t.PositionLayout=o,t.PositionUVLayout=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
