Vec2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:737
Type of the d.vec2h object/function: vector data type schema/constructor
Extends
Section titled “Extends”Call Signature
Section titled “Call Signature”Vec2h(
x,y):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:741
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2h(
xy):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:742
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2h():
v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:743
Type of the d.vec2h object/function: vector data type schema/constructor
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2h(
v):v2h
Defined in: packages/typegpu/src/data/wgslTypes.ts:744
Type of the d.vec2h object/function: vector data type schema/constructor
Parameters
Section titled “Parameters”AnyNumericVec2Instance
Returns
Section titled “Returns”Properties
Section titled “Properties”[$gpuCallableStrictSignature]?
Section titled “[$gpuCallableStrictSignature]?”
optional[$gpuCallableStrictSignature]:GPUCallableStrictSignature
Defined in: packages/typegpu/src/types.ts:484
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallableStrictSignature]
[$inRepr]
Section titled “[$inRepr]”
readonly[$inRepr]:v2h| readonly [number,number] |Float16Array<ArrayBufferLike>
Defined in: packages/typegpu/src/data/wgslTypes.ts:752
[$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:751
Overrides
Section titled “Overrides”[$validStorageSchema]
Section titled “[$validStorageSchema]”
readonly[$validStorageSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:753
[$validUniformSchema]
Section titled “[$validUniformSchema]”
readonly[$validUniformSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:754
[$validVertexSchema]
Section titled “[$validVertexSchema]”
readonly[$validVertexSchema]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:755
componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:748
primitive
Section titled “primitive”
readonlyprimitive:F16
Defined in: packages/typegpu/src/data/wgslTypes.ts:747
readonlytype:"vec2h"
Defined in: packages/typegpu/src/data/wgslTypes.ts:746
Overrides
Section titled “Overrides”Methods
Section titled “Methods”[$gpuCallable]()
Section titled “[$gpuCallable]()”[$gpuCallable](
ctx,args):Snippet
Defined in: packages/typegpu/src/types.ts:483
Parameters
Section titled “Parameters”ResolutionCtx
readonly [Snippet]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:49
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.