LogoPixi’VN
pixi-jsInterfaces

Interface: GlShaderWith

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.d.ts:34

A base interface for shaders that includes the common properties.

Advanced

Extends

  • ShaderBase

Properties

compatibleRenderers?

> optional compatibleRenderers?: number

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.d.ts:27

A number that uses two bits on whether the shader is compatible with the WebGL renderer and/or the WebGPU renderer. 0b00 - not compatible with either 0b01 - compatible with WebGL 0b10 - compatible with WebGPU This is automatically set based on if a GlProgram or GpuProgram is provided.

Inherited from

ShaderBase.compatibleRenderers


glProgram

> glProgram: GlProgram

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.d.ts:36

The WebGL program used by the WebGL renderer.

Overrides

ShaderBase.glProgram


gpuProgram?

> optional gpuProgram?: GpuProgram

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.d.ts:19

The WebGPU program used by the WebGPU renderer.

Inherited from

ShaderBase.gpuProgram