Skip to content

Vec2f

Type of the d.vec2f object/function: vector data type schema/constructor

  • DualFn<(x, y) => v2f & (xy) => v2f & () => v2f & (v) => v2f>

Vec2f(x, y): v2f

Type of the d.vec2f object/function: vector data type schema/constructor

number

number

v2f

packages/typegpu/src/data/wgslTypes.ts:869

Vec2f(xy): v2f

Type of the d.vec2f object/function: vector data type schema/constructor

number

v2f

packages/typegpu/src/data/wgslTypes.ts:870

Vec2f(): v2f

Type of the d.vec2f object/function: vector data type schema/constructor

v2f

packages/typegpu/src/data/wgslTypes.ts:871

Vec2f(v): v2f

Type of the d.vec2f object/function: vector data type schema/constructor

AnyNumericVec2Instance

v2f

packages/typegpu/src/data/wgslTypes.ts:872

readonly [$internal]: object

argConversionHint: FnArgsConversionHint

gpuImpl: (…args) => Snippet

…[Snippet]

Snippet

jsImpl: (x, y) => v2f & (xy) => v2f & () => v2f & (v) => v2f

DualFn.[$internal]

packages/typegpu/src/data/dualFn.ts:8


readonly [$repr]: v2f

packages/typegpu/src/data/wgslTypes.ts:878


readonly [$validStorageSchema]: true

packages/typegpu/src/data/wgslTypes.ts:879


readonly [$validUniformSchema]: true

packages/typegpu/src/data/wgslTypes.ts:880


readonly [$validVertexSchema]: true

packages/typegpu/src/data/wgslTypes.ts:881


readonly primitive: F32

packages/typegpu/src/data/wgslTypes.ts:875


readonly type: "vec2f"

packages/typegpu/src/data/wgslTypes.ts:874