InferPatch
InferPatch<
T> =Textendsobject?TRepr:InferInput<T> |undefined
Defined in: packages/typegpu/src/shared/repr.ts:95
Extracts the patch representation of a resource.
Used by the buffer.patch API.
Type Parameters
Section titled “Type Parameters”T
Example
Section titled “Example”type A = InferPatch<F32> // => number | undefinedtype B = InferPatch<WgslStruct<{ a: F32 }>> // => { a?: number | undefined }type C = InferPatch<WgslArray<F32>> // => Record<number, number | undefined> | number[] | undefined