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

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

Hierarchy (view full)

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

Type declaration

    • (): void
    • callback to run before updating the binding using this InputBase

      Returns void

Accessors