Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

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.

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.

T extends BaseData

Infer<T>[]

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.

Infer<TElement>[]

readonly [$internal]: true | Record<string, any>

Defined in: packages/typegpu/src/data/wgslTypes.ts:34

BaseData.[$internal]


readonly [$invalidSchemaReason]: "Disarrays are not host-shareable, use arrays instead"

Defined in: packages/typegpu/src/data/dataTypes.ts:48


readonly [$repr]: Infer<TElement>[]

Defined in: packages/typegpu/src/data/dataTypes.ts:43

BaseData.[$repr]


readonly [$reprPartial]: undefined | object[]

Defined in: packages/typegpu/src/data/dataTypes.ts:44


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

Defined in: packages/typegpu/src/data/dataTypes.ts:47


readonly elementCount: number

Defined in: packages/typegpu/src/data/dataTypes.ts:39


readonly elementType: TElement

Defined in: packages/typegpu/src/data/dataTypes.ts:40


readonly type: "disarray"

Defined in: packages/typegpu/src/data/dataTypes.ts:38

BaseData.type