ref
ref<
T> =Textendsobject?T&ref<T> :ref<T>
Defined in: packages/typegpu/src/data/ref.ts:39
A reference to a value T. Can be passed to other functions to give them
mutable access to the underlying value.
Conceptually, it represents a WGSL pointer.
Type Parameters
Section titled βType ParametersβT