Disarray
Defined in: packages/typegpu/src/data/dataTypes.ts:45
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
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:32
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:57
[$repr]
Section titled “[$repr]”
readonly
[$repr]:Infer
<TElement
>[]
Defined in: packages/typegpu/src/data/dataTypes.ts:52
Overrides
Section titled “Overrides”[$reprPartial]
Section titled “[$reprPartial]”
readonly
[$reprPartial]:undefined
|object
[]
Defined in: packages/typegpu/src/data/dataTypes.ts:53
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly
[$validVertexSchema]:IsValidVertexSchema
<TElement
>
Defined in: packages/typegpu/src/data/dataTypes.ts:56
elementCount
Section titled “elementCount”
readonly
elementCount:number
Defined in: packages/typegpu/src/data/dataTypes.ts:48
elementType
Section titled “elementType”
readonly
elementType:TElement
Defined in: packages/typegpu/src/data/dataTypes.ts:49
readonly
type:"disarray"
Defined in: packages/typegpu/src/data/dataTypes.ts:47