Vec2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:787
Type of the d.vec2u object/function: vector data type schema/constructor
Extends
Section titled “Extends”Call Signature
Section titled “Call Signature”Vec2u(
x,y):v2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:791
Type of the d.vec2u object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2u(
xy):v2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:792
Type of the d.vec2u object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2u():
v2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:793
Type of the d.vec2u object/function: vector data type schema/constructor
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2u(
v):v2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:794
Type of the d.vec2u object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”AnyNumericVec2Instance
Returns
Section titled “Returns”Properties
Section titled “Properties”[$gpuCallableStrictSignature]?
Section titled “[$gpuCallableStrictSignature]?”
optional[$gpuCallableStrictSignature]:GPUCallableStrictSignature
Defined in: packages/typegpu/src/types.ts:484
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallableStrictSignature]
[$inRepr]
Section titled “[$inRepr]”
readonly[$inRepr]:v2u| readonly [number,number] |Uint32Array<ArrayBufferLike>
Defined in: packages/typegpu/src/data/wgslTypes.ts:802
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Defined in: packages/typegpu/src/data/wgslTypes.ts:46
Inherited from
Section titled “Inherited from”[$repr]
Section titled “[$repr]”
readonly[$repr]:v2u
Defined in: packages/typegpu/src/data/wgslTypes.ts:801
Overrides
Section titled “Overrides”[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:803
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:804
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:805
componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:798
primitive
Section titled “primitive”
readonlyprimitive:U32
Defined in: packages/typegpu/src/data/wgslTypes.ts:797
readonlytype:"vec2u"
Defined in: packages/typegpu/src/data/wgslTypes.ts:796
Overrides
Section titled “Overrides”Methods
Section titled “Methods”[$gpuCallable]()
Section titled “[$gpuCallable]()”[$gpuCallable](
ctx,args):Snippet
Defined in: packages/typegpu/src/types.ts:483
Parameters
Section titled “Parameters”ResolutionCtx
readonly [Snippet]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:49
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.