Skip to content

WgslArray

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

Array schema constructed via d.arrayOf function.

Responsible for handling reading and writing array values between binary and JS representation. Takes into account the byteAlignment requirement of its elementType.

TElement extends BaseData = BaseData

WgslArray<T>(elements): Infer<T>[]

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

Array schema constructed via d.arrayOf function.

Responsible for handling reading and writing array values between binary and JS representation. Takes into account the byteAlignment requirement of its elementType.

T extends BaseData

Infer<T>[]

Infer<T>[]

WgslArray(): Infer<TElement>[]

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

Array schema constructed via d.arrayOf function.

Responsible for handling reading and writing array values between binary and JS representation. Takes into account the byteAlignment requirement of its elementType.

Infer<TElement>[]

readonly [$gpuRepr]: InferGPU<TElement>[]

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


readonly [$inRepr]: readonly InferInput<TElement>[] | TypedArrayFor<TElement>

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


readonly [$internal]: Record<string, unknown>

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

BaseData.[$internal]


readonly **[{ExtractInvalidSchemaError<TElement, "">}` “

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


readonly [$memIdent]: WgslArray<MemIdentity<TElement>>

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


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

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

BaseData.[$repr]


readonly [$reprPartial]: object[] | undefined

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


readonly [$reprPatch]: TypedArrayFor<TElement> | InferInput<TElement>[] | Record<number, InferPatch<TElement>> | undefined

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


readonly [$validStorageSchema]: IsValidStorageSchema<TElement>

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


readonly [$validUniformSchema]: IsValidUniformSchema<TElement>

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


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

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


readonly elementCount: number

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


readonly elementType: TElement

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


readonly type: "array"

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

BaseData.type

toString(): string

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

string

BaseData.toString

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.