Skip to content

WgslArray

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.

TElement extends BaseData = BaseData

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

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

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

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


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

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


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


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

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


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

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

BaseData.[$repr]


readonly [$reprPartial]: object[] | undefined

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


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

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


readonly [$validStorageSchema]: IsValidStorageSchema<TElement>

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


readonly [$validUniformSchema]: IsValidUniformSchema<TElement>

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


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

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


readonly elementCount: number

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


readonly elementType: TElement

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


readonly type: "array"

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

BaseData.type

toString(): string

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

string

BaseData.toString