Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

isPtr

isPtr<T>(schema): schema is T

Defined in: packages/typegpu/src/data/wgslTypes.ts:1703

Checks whether passed in value is a pointer (‘function’ scope) schema.

T extends Ptr<AddressSpace, BaseData, Access>

unknown

schema is T

isPtrFn(d.ptrFn(d.f32)) // true
isPtrFn(d.f32) // false