rullino
    Preparing search index...

    Interface EnumParam<O>

    options maps value -> label. In WGSL the value is a u32: the option's index in declaration order.

    interface EnumParam<
        O extends
            Readonly<Record<string, string>> = Readonly<Record<string, string>>,
    > {
        default: keyof O & string;
        description?: string;
        group?: string;
        label?: string;
        options: O;
        type: "enum";
    }

    Type Parameters

    • O extends Readonly<Record<string, string>> = Readonly<Record<string, string>>

    Hierarchy

    • ParamBase
      • EnumParam
    Index
    default: keyof O & string
    description?: string
    group?: string

    UI grouping: params sharing a group are shown together (as tabs in the playground).

    label?: string
    options: O
    type: "enum"