Defines a BufferBinding input object that can set a value and run a callback function when this happens

interface BufferBindingInput {
    _value: InputValue;
    get value(): InputValue;
    set value(value: InputValue): void;
    shouldUpdate: boolean;
    name: string;
    type: string;
    onBeforeUpdate?: () => void;
}

Hierarchy (View Summary)

Properties

_value: InputValue

Original input value

shouldUpdate: boolean

Whether the input value has changed and we should update the buffer binding array

name: string
type: string

InputBase type - could be 'f32', 'vec2f', etc.

onBeforeUpdate?: () => void

Callback to run before updating the binding using this InputBase.

Accessors