RSX Code Reference
    Preparing search index...
    • rsx
    • CarbonMaterialCodeGenerationResult

    Interface CarbonMaterialCodeGenerationResult

    Represents the result of a code generation operation of a CarbonMaterialGraph.

    interface CarbonMaterialCodeGenerationResult {
        code: string;
        context: GraphCodeGenerationContext;
        diagnosticMessages: string[];
        didRecompileShader?: boolean;
        hasError: boolean;
        previewData?: IGraphCodeGenerationPreviewData;
        programCode?: string;
    }

    Hierarchy (View Summary)

    Index
    code: string

    The generated code.

    The code generation context.

    diagnosticMessages: string[]

    Diagnostic messages. If not empty, the generated code might be incorrect.

    didRecompileShader?: boolean

    Determines if the underlying shader was recompiled.

    hasError: boolean

    Determines if an error occured.

    The optional preview data.

    programCode?: string

    The compiled program code.