/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./DefaultVertexAttributeLocations","./DefaultVertexBufferLayouts","../../../webgl/BufferObject","../../../webgl/enums","../../../webgl/Texture","../../../webgl/VertexArrayObject"],(function(e,t,r,a,n,o,u){"use strict";function T(e,o=r.Pos2,T=t.Default3D,i=-1,l=1){let x=null;switch(o){case r.Pos2Tex:x=new Float32Array([i,i,0,0,l,i,1,0,i,l,0,1,l,l,1,1]);break;case r.Pos2:default:x=new Float32Array([i,i,l,i,i,l,l,l])}return new u.VertexArrayObject(e,T,{geometry:o},{geometry:a.BufferObject.createVertex(e,n.Usage.STATIC_DRAW,x)})}function i(e,o=r.Pos2,T=t.Default3D){const i=new Float32Array([-1,-1,3,-1,-1,3]);return new u.VertexArrayObject(e,T,{geometry:o},{geometry:a.BufferObject.createVertex(e,n.Usage.STATIC_DRAW,i)})}const l=4;function x(e,t=l){return new o.Texture(e,{target:n.TextureType.TEXTURE_2D,pixelFormat:n.PixelFormat.RGBA,dataType:n.PixelType.UNSIGNED_BYTE,samplingMode:n.TextureSamplingMode.NEAREST,width:t,height:t})}function c(e,t,r=l){const a=new Uint8Array(r*r*4);for(let n=0;n<a.length;n+=4)a[n+0]=255*t[0],a[n+1]=255*t[1],a[n+2]=255*t[2],a[n+3]=255*t[3];return new o.Texture(e,{target:n.TextureType.TEXTURE_2D,pixelFormat:n.PixelFormat.RGBA,dataType:n.PixelType.UNSIGNED_BYTE,samplingMode:n.TextureSamplingMode.NEAREST,width:r,height:r},a)}function g(e){return new o.Texture(e,{target:n.TextureType.TEXTURE_2D,pixelFormat:n.PixelFormat.RGBA,dataType:n.PixelType.UNSIGNED_BYTE,samplingMode:n.TextureSamplingMode.NEAREST,width:1,height:1},new Uint8Array([255,255,255,255]))}e.createColorTexture=c,e.createEmptyDepthTexture=g,e.createEmptyTexture=x,e.createQuadVAO=T,e.createScreenSizeTriangleVAO=i,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
