Skip to content

WgslArray

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

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:1167

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:1168

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:1176


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

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


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:1187


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

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


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

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

BaseData.[$repr]


readonly [$reprPartial]: object[] | undefined

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


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

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


readonly [$validStorageSchema]: IsValidStorageSchema<TElement>

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


readonly [$validUniformSchema]: IsValidUniformSchema<TElement>

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


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

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


readonly elementCount: number

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


readonly elementType: TElement

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


readonly type: "array"

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

BaseData.type

toString(): string

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

string

BaseData.toString