Defines a PipelineEntry shader object.

interface PipelineEntryShader {
    head?: string;
    code: string;
    module: GPUShaderModule;
}

Properties

Properties

head?: string

Additional piece of WGSL code added at the beginning of the shader, with bits coming from the Binding and Geometry.

code: string

Complete WGSL shader code, i.e. head code plus code that has been passed by the Material.

module: GPUShaderModule

GPUShaderModule created based on the given code.