Vec2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:788
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:792
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:792
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:792
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:792
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”[$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]
[$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:800
[$repr]
Section titled “[$repr]”
readonly[$repr]:v2b
Defined in: packages/typegpu/src/data/wgslTypes.ts:799
Overrides
Section titled “Overrides”componentCount
Section titled “componentCount”
readonlycomponentCount:2
Defined in: packages/typegpu/src/data/wgslTypes.ts:796
primitive
Section titled “primitive”
readonlyprimitive:Bool
Defined in: packages/typegpu/src/data/wgslTypes.ts:795
readonlytype:"vec2<bool>"
Defined in: packages/typegpu/src/data/wgslTypes.ts:794
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