Vec2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:762
Type of the d.vec2i object/function: vector data type schema/constructor
Extends
Section titled “Extends”Call Signature
Section titled “Call Signature”Vec2i(
x,y):v2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:766
Type of the d.vec2i object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2i(
xy):v2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:767
Type of the d.vec2i object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2i():
v2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:768
Type of the d.vec2i object/function: vector data type schema/constructor
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2i(
v):v2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:769
Type of the d.vec2i 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]:v2i| readonly [number,number] |Int32Array<ArrayBufferLike>
Defined in: packages/typegpu/src/data/wgslTypes.ts:777
[$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]:v2i
Defined in: packages/typegpu/src/data/wgslTypes.ts:776
Overrides
Section titled “Overrides”[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:778
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:779
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:780
componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:773
primitive
Section titled “primitive”
readonlyprimitive:I32
Defined in: packages/typegpu/src/data/wgslTypes.ts:772
readonlytype:"vec2i"
Defined in: packages/typegpu/src/data/wgslTypes.ts:771
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.