Vec2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:712
Type of the d.vec2f object/function: vector data type schema/constructor
Extends
Section titled “Extends”Call Signature
Section titled “Call Signature”Vec2f(
x,y):v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:716
Type of the d.vec2f object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2f(
xy):v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:717
Type of the d.vec2f object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2f():
v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:718
Type of the d.vec2f object/function: vector data type schema/constructor
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2f(
v):v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:719
Type of the d.vec2f 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]:v2f| readonly [number,number] |Float32Array<ArrayBufferLike>
Defined in: packages/typegpu/src/data/wgslTypes.ts:727
[$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]:v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:726
Overrides
Section titled “Overrides”[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:728
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:729
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:730
componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:723
primitive
Section titled “primitive”
readonlyprimitive:F32
Defined in: packages/typegpu/src/data/wgslTypes.ts:722
readonlytype:"vec2f"
Defined in: packages/typegpu/src/data/wgslTypes.ts:721
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.