Skip to content

ref

ref<T> = T extends object ? T & ref<T> : ref<T>

Defined in: packages/typegpu/src/data/ref.ts:45

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.

T

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.