Vec2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:712
Type of the d.vec2h object/function: vector data type schema/constructor
Extends
Section titled “Extends”BaseData.DualFn<(x,y) =>v2h& (xy) =>v2h& () =>v2h& (v) =>v2h>
Call Signature
Section titled “Call Signature”Vec2h(
x,y):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:716
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”v2h
Call Signature
Section titled “Call Signature”Vec2h(
xy):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:717
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”v2h
Call Signature
Section titled “Call Signature”Vec2h():
v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:718
Type of the d.vec2h object/function: vector data type schema/constructor
Returns
Section titled “Returns”v2h
Call Signature
Section titled “Call Signature”Vec2h(
v):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:719
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”AnyNumericVec2Instance
Returns
Section titled “Returns”v2h
Properties
Section titled “Properties”[$gpuCallable]
Section titled “[$gpuCallable]”[$gpuCallable]:
object
Defined in: packages/typegpu/src/types.ts:359
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”[Snippet]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
[$inRepr]
Section titled “[$inRepr]”
readonly[$inRepr]:v2h| [number,number] |Float16Array<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]:v2h
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:F16
Defined in: packages/typegpu/src/data/wgslTypes.ts:722
readonlytype:"vec2h"
Defined in: packages/typegpu/src/data/wgslTypes.ts:721
Overrides
Section titled “Overrides”Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:49
Returns
Section titled “Returns”string