Vec2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:647
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:651
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:652
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:653
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:654
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”[$gpuCallable]
Section titled “[$gpuCallable]”[$gpuCallable]:
object
Defined in: packages/typegpu/src/types.ts:340
strictSignature?
Section titled “strictSignature?”
optionalstrictSignature:object
strictSignature.argTypes
Section titled “strictSignature.argTypes”strictSignature.returnType
Section titled “strictSignature.returnType”returnType:
BaseData
call()
Section titled “call()”call(
ctx,args):Snippet
Parameters
Section titled “Parameters”ResolutionCtx
[Snippet]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Defined in: packages/typegpu/src/data/wgslTypes.ts:40
Inherited from
Section titled “Inherited from”[$repr]
Section titled “[$repr]”
readonly[$repr]:v2f
Defined in: packages/typegpu/src/data/wgslTypes.ts:661
Overrides
Section titled “Overrides”[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:662
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:663
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:664
componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:658
primitive
Section titled “primitive”
readonlyprimitive:F32
Defined in: packages/typegpu/src/data/wgslTypes.ts:657
readonlytype:"vec2f"
Defined in: packages/typegpu/src/data/wgslTypes.ts:656
Overrides
Section titled “Overrides”Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:43
Returns
Section titled “Returns”string