pixi-jsFunctions
Function: mapViewDimensionToGlTarget()
> mapViewDimensionToGlTarget(gl): Record<TextureSource["viewDimension"], number | null>
Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/utils/mapViewDimensionToGlTarget.d.ts:10
Internal
Builds a lookup table that maps Pixi's texture view dimension to the appropriate WebGL texture target.
This is about how the texture is bound/viewed in shaders, not about how pixel data is uploaded.
Parameters
gl
WebGL2RenderingContext
WebGL context.
Returns
Record<TextureSource["viewDimension"], number | null>