Skip to content

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.

unknown

schema is Ptr<AddressSpace, BaseData, Access>

isPtr(d.ptrFn(d.f32)) // true
isPtr(d.ptrPrivate(d.f32)) // true
isPtr(d.f32) // false

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