gpu-curtains
    Preparing search index...

    Interface ShaderOptions

    Options used to create a shader.

    interface ShaderOptions {
        code: string;
        entryPoint?: string;
        constants?: Record<string, number | boolean>;
    }
    Index

    Properties

    code: string

    The shader WGSL code.

    entryPoint?: string

    The shader main function entry point.

    constants?: Record<string, number | boolean>

    Specifies the values of pipeline-overridable constants in the shader module if any. Note that if a constant is defined here, it must be used in the shader code.