InferPartial
InferPartial<
T>:Textendsobject?TRepr:Textendsobject?TRepr|undefined:T
Defined in: packages/typegpu/src/shared/repr.ts:36
Extracts a sparse/partial inferred representation of a resource.
Used by the buffer.writePartial API.
Type Parameters
Section titled “Type Parameters”• T
Example
Section titled “Example”type A = InferPartial<F32> // => number | undefinedtype B = InferPartial<WgslStruct<{ a: F32 }>> // => { a?: number | undefined }type C = InferPartial<WgslArray<F32>> // => { idx: number; value: number | undefined }[] | undefined