isPtr
isPtr(
schema):schema is Ptr<AddressSpace, BaseData, Access>
Defined in: packages/typegpu/src/data/wgslTypes.ts:1681
Checks whether passed in value is a pointer schema.
Parameters
Section titled “Parameters”schema
Section titled “schema”unknown
Returns
Section titled “Returns”schema is Ptr<AddressSpace, BaseData, Access>
Example
Section titled “Example”isPtr(d.ptrFn(d.f32)) // trueisPtr(d.ptrPrivate(d.f32)) // trueisPtr(d.f32) // false© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.