Define a BufferBinding children binding entry parameters. Used to build complex WGSL Struct containing Struct children.

interface BufferBindingChildrenBinding {
    binding: BufferBinding;
    count?: number;
    forceArray?: boolean;
}

Properties

binding: BufferBinding

The BufferBinding to use.

count?: number

The number of times to use this binding. If it is greater than 1, the binding will be cloned with new arrays to use for values.

forceArray?: boolean

Whether to force this Struct element to be defined as an array, even if count is lower or equal to 1. Useful when a Struct element absolutely needs to be iterable.