Disarray
Defined in: packages/typegpu/src/data/dataTypes.ts:34
Array schema constructed via d.disarrayOf function.
Useful for defining vertex buffers.
Elements in the schema are not aligned in respect to their byteAlignment,
unless they are explicitly decorated with the custom align attribute
via d.align function.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”• TElement extends BaseData = BaseData
Disarray<
T>(elements):Infer<T>[]
Defined in: packages/typegpu/src/data/dataTypes.ts:36
Array schema constructed via d.disarrayOf function.
Useful for defining vertex buffers.
Elements in the schema are not aligned in respect to their byteAlignment,
unless they are explicitly decorated with the custom align attribute
via d.align function.
Type Parameters
Section titled “Type Parameters”• T extends BaseData
Parameters
Section titled “Parameters”elements
Section titled “elements”Infer<T>[]
Returns
Section titled “Returns”Infer<T>[]
Disarray():
Infer<TElement>[]
Defined in: packages/typegpu/src/data/dataTypes.ts:37
Array schema constructed via d.disarrayOf function.
Useful for defining vertex buffers.
Elements in the schema are not aligned in respect to their byteAlignment,
unless they are explicitly decorated with the custom align attribute
via d.align function.
Returns
Section titled “Returns”Infer<TElement>[]
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:true|Record<string,any>
Defined in: packages/typegpu/src/data/wgslTypes.ts:34
Inherited from
Section titled “Inherited from”[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly[$invalidSchemaReason]:"Disarrays are not host-shareable, use arrays instead"
Defined in: packages/typegpu/src/data/dataTypes.ts:48
[$repr]
Section titled “[$repr]”
readonly[$repr]:Infer<TElement>[]
Defined in: packages/typegpu/src/data/dataTypes.ts:43
Overrides
Section titled “Overrides”[$reprPartial]
Section titled “[$reprPartial]”
readonly[$reprPartial]:undefined|object[]
Defined in: packages/typegpu/src/data/dataTypes.ts:44
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:IsValidVertexSchema<TElement>
Defined in: packages/typegpu/src/data/dataTypes.ts:47
elementCount
Section titled “elementCount”
readonlyelementCount:number
Defined in: packages/typegpu/src/data/dataTypes.ts:39
elementType
Section titled “elementType”
readonlyelementType:TElement
Defined in: packages/typegpu/src/data/dataTypes.ts:40
readonlytype:"disarray"
Defined in: packages/typegpu/src/data/dataTypes.ts:38