A WebGPU implementation of the Shader.

Constructors

Properties

_computeCode: string = null

Compute shader code.

_fragmentCode: string = null

Transpiled fragment shader code.

_vertexCode: string = null

Transpiled vertex shader code.

computeEntryPoint: string = 'main'

Name of the compute entry point function.

fragmentEntryPoint: string = 'main'

Name of the fragment entry point function.

shader: Shader
vertexEntryPoint: string = 'main'

Name of the vertex entry point function.

Methods