Skip to content

WgslArray

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

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

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

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>[]

optional [$gpuCallableStrictSignature]: GPUCallableStrictSignature

Defined in: packages/typegpu/src/types.ts:484

GPUCallable.[$gpuCallableStrictSignature]


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

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


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

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


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


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

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


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

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

BaseData.[$repr]


readonly [$reprPartial]: object[] | undefined

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


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

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


readonly [$validStorageSchema]: IsValidStorageSchema<TElement>

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


readonly [$validUniformSchema]: IsValidUniformSchema<TElement>

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


readonly [$validVertexSchema]: IsValidVertexSchema<TElement>

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


readonly elementCount: number

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


readonly elementType: TElement

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


readonly type: "array"

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

BaseData.type

[$gpuCallable](ctx, args): Snippet

Defined in: packages/typegpu/src/types.ts:483

ResolutionCtx

readonly [Snippet | undefined]

Snippet

GPUCallable.[$gpuCallable]


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.