Interface: ShaderWith

ShaderWith

A descriptor for a shader

Properties:
Name Type Description
compatibleRenderers number

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 {@link GpuProgram} is provided.

glProgram GlProgram

The WebGL program used by the WebGL renderer.

gpuProgram GpuProgram

The WebGPU program used by the WebGPU renderer.

Members

compatibleRenderers number

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 {@link GpuProgram} is provided.

glProgram GlProgram

The WebGL program used by the WebGL renderer.

gpuProgram GpuProgram

The WebGPU program used by the WebGPU renderer.