webgl
Index
Functions
getAttributeComponentSize
Parameters
gl: WebGLRenderingContext
type: number
Returns number
getAttributePointerType
Based on the attribute return the corresponding supported attrib pointer type https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer
Parameters
gl: WebGLRenderingContext
type: number
Returns 5126 | 5122 | 5123 | 5121 | 5120
getGLTypeFromSource
Attempt to discern the glType of an attribute from vertex source
Parameters
gl: WebGLRenderingContext
source: string
variable: string
Returns 5126 | 5124 | 5125 | 35670 | 5122 | 5123 | 5121 | 5120
getGlTypeSizeBytes
Return the size of the GlType in bytes
Parameters
gl: WebGLRenderingContext
type: number
Returns number
getMaxShaderComplexity
Parameters
gl: WebGL2RenderingContext
numIfs: number
Returns number
isAttributeInSource
Checks if an attribute is present in vertex source
Parameters
source: string
variable: string
Returns boolean
Based on the type return the number of attribute components
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer