Skip to content

Vec4h

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

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

Vec4h(x, y, z, w): v4h

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

number

number

number

number

v4h

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

Vec4h(xyzw): v4h

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

number

v4h

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

Vec4h(): v4h

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

v4h

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

Vec4h(v): v4h

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

AnyNumericVec4Instance

v4h

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

Vec4h(v0, w): v4h

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

AnyNumericVec3Instance

number

v4h

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

Vec4h(x, v0): v4h

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

number

AnyNumericVec3Instance

v4h

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

Vec4h(v0, v1): v4h

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

AnyNumericVec2Instance

AnyNumericVec2Instance

v4h

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

Vec4h(v0, z, w): v4h

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

AnyNumericVec2Instance

number

number

v4h

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

Vec4h(x, v0, z): v4h

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

number

AnyNumericVec2Instance

number

v4h

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

Vec4h(x, y, v0): v4h

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

number

number

AnyNumericVec2Instance

v4h

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

readonly [$internal]: object

argConversionHint: FnArgsConversionHint

gpuImpl: (…args) => Snippet

…[Snippet, Snippet, Snippet]

Snippet

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

DualFn.[$internal]

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


readonly [$repr]: v4h

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


readonly [$validStorageSchema]: true

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


readonly [$validUniformSchema]: true

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


readonly [$validVertexSchema]: true

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


readonly primitive: F16

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


readonly type: "vec4h"

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