Skip to content

WgslArray

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

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

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

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


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

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


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


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

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


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

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

BaseData.[$repr]


readonly [$reprPartial]: object[] | undefined

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


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

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


readonly [$validStorageSchema]: IsValidStorageSchema<TElement>

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


readonly [$validUniformSchema]: IsValidUniformSchema<TElement>

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


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

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


readonly elementCount: number

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


readonly elementType: TElement

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


readonly type: "array"

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

BaseData.type

toString(): string

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

string

BaseData.toString