gpu-curtains
    Preparing search index...

    Interface PipelineEntryShader

    Defines a PipelineEntry shader object.

    interface PipelineEntryShader {
        head?: string;
        code: string;
        module: GPUShaderModule;
        constants: Map<string, number | boolean>;
    }
    Index

    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.

    GPUShaderModule created based on the given code.

    constants: Map<string, number | boolean>

    Map of ShaderOptions constants to add to the shader head.