Taos API Reference
    Preparing search index...

    Interface CodegenResult

    interface CodegenResult {
        source: string;
        errors: string[];
        textures: (string | null)[];
        params: ShaderParam[];
    }
    Index

    Properties

    source: string

    The surface() WGSL (ready for CustomShaderMaterial).

    errors: string[]

    Non-fatal problems (unknown node, cycle, missing output) — surfaced in the UI.

    textures: (string | null)[]

    Texture-asset guids to bind into the material's slots (index = slot 0..3), collected from Sample Texture nodes that reference an image asset.

    params: ShaderParam[]

    The shader's declared parameters (drives the material's uniform layout).