Options used to create a shader.

interface ShaderOptions {
    code: string;
    entryPoint?: string;
}

Properties

Properties

code: string

The shader WGSL code.

entryPoint?: string

The shader main function entry point.