MemIdentity
MemIdentity<
T> =Textendsobject?TMemIdent:T
Defined in: packages/typegpu/src/shared/repr.ts:117
Expands a schema to a union of other schemas that have the same binary representation.
Type Parameters
Section titled “Type Parameters”T
Example
Section titled “Example”type A = MemIdentity<F32> // => F32type B = MemIdentity<I32> // => I32 | Atomic<I32> | Decorated<I32, Location[]>type C = MemIdentity<WgslArray<I32>> // => WgslArray<I32 | Atomic<I32> | Decorated<I32, Location[]>>