Base parameters used to create a BufferBinding

interface BufferBindingBaseParams {
    useStruct?: boolean;
    access?: BufferBindingMemoryAccessType;
    struct?: Record<string, Input>;
    usage?: BufferUsageKeys[];
}

Hierarchy (view full)

Properties

useStruct?: boolean

Whether this BufferBinding should use structured WGSL variables

BufferBinding memory access types (read only or read/write)

struct?: Record<string, Input>

Object containing one or multiple inputs describing the structure of the BufferBinding

usage?: BufferUsageKeys[]

Allowed usages for the BufferBinding#buffer as an array of buffer usages names