Skip to content

Vec4f

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

  • DualFn<(x, y, z, w) => v4f & (xyzw) => v4f & () => v4f & (v) => v4f & (v0, w) => v4f & (x, v0) => v4f & (v0, v1) => v4f & (v0, z, w) => v4f & (x, v0, z) => v4f & (x, y, v0) => v4f>

Vec4f(x, y, z, w): v4f

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

number

number

number

number

v4f

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

Vec4f(xyzw): v4f

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

number

v4f

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

Vec4f(): v4f

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

v4f

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

Vec4f(v): v4f

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

AnyNumericVec4Instance

v4f

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

Vec4f(v0, w): v4f

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

AnyNumericVec3Instance

number

v4f

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

Vec4f(x, v0): v4f

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

number

AnyNumericVec3Instance

v4f

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

Vec4f(v0, v1): v4f

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

AnyNumericVec2Instance

AnyNumericVec2Instance

v4f

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

Vec4f(v0, z, w): v4f

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

AnyNumericVec2Instance

number

number

v4f

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

Vec4f(x, v0, z): v4f

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

number

AnyNumericVec2Instance

number

v4f

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

Vec4f(x, y, v0): v4f

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

number

number

AnyNumericVec2Instance

v4f

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

readonly [$internal]: object

argConversionHint: FnArgsConversionHint

gpuImpl: (…args) => Snippet

…[Snippet, Snippet, Snippet]

Snippet

jsImpl: (x, y, z, w) => v4f & (xyzw) => v4f & () => v4f & (v) => v4f & (v0, w) => v4f & (x, v0) => v4f & (v0, v1) => v4f & (v0, z, w) => v4f & (x, v0, z) => v4f & (x, y, v0) => v4f

DualFn.[$internal]

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


readonly [$repr]: v4f

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


readonly [$validStorageSchema]: true

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


readonly [$validUniformSchema]: true

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


readonly [$validVertexSchema]: true

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


readonly primitive: F32

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


readonly type: "vec4f"

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