Vec2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:813
Type of the d.vec2b object/function: vector data type schema/constructor
Cannot be used inside buffers as it is not host-shareable.
Extends
Section titled “Extends”Call Signature
Section titled “Call Signature”Vec2b(
x,y):v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:817
Type of the d.vec2b object/function: vector data type schema/constructor
Cannot be used inside buffers as it is not host-shareable.
Parameters
Section titled “Parameters”boolean
boolean
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2b(
xy):v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:817
Type of the d.vec2b object/function: vector data type schema/constructor
Cannot be used inside buffers as it is not host-shareable.
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2b():
v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:817
Type of the d.vec2b object/function: vector data type schema/constructor
Cannot be used inside buffers as it is not host-shareable.
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Vec2b(
v):v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:817
Type of the d.vec2b object/function: vector data type schema/constructor
Cannot be used inside buffers as it is not host-shareable.
Parameters
Section titled “Parameters”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]
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Defined in: packages/typegpu/src/data/wgslTypes.ts:46
Inherited from
Section titled “Inherited from”[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly[$invalidSchemaReason]:"Boolean vectors is not host-shareable, use numeric vectors instead"
Defined in: packages/typegpu/src/data/wgslTypes.ts:825
[$repr]
Section titled “[$repr]”
readonly[$repr]:v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:824
Overrides
Section titled “Overrides”componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:821
primitive
Section titled “primitive”
readonlyprimitive:Bool
Defined in: packages/typegpu/src/data/wgslTypes.ts:820
readonlytype:"vec2<bool>"
Defined in: packages/typegpu/src/data/wgslTypes.ts:819
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.