Skip to content

Vec2b

Type of the d.vec2b object/function: vector data type schema/constructor Cannot be used inside buffers as it is not host-shareable.

Vec2b(x, y): v2b

Type of the d.vec2b object/function: vector data type schema/constructor Cannot be used inside buffers as it is not host-shareable.

boolean

boolean

v2b

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

Vec2b(xy): v2b

Type of the d.vec2b object/function: vector data type schema/constructor Cannot be used inside buffers as it is not host-shareable.

boolean

v2b

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

Vec2b(): v2b

Type of the d.vec2b object/function: vector data type schema/constructor Cannot be used inside buffers as it is not host-shareable.

v2b

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

Vec2b(v): v2b

Type of the d.vec2b object/function: vector data type schema/constructor Cannot be used inside buffers as it is not host-shareable.

v2b

v2b

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

[$gpuCallable]: object

optional strictSignature: object

argTypes: (BaseData | BaseData[])[]

returnType: BaseData

ResolutionCtx

[Snippet]

Snippet

DualFn.[$gpuCallable]

packages/typegpu/src/types.ts:340


readonly [$internal]: Record<string, unknown>

BaseData.[$internal]

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


readonly [$invalidSchemaReason]: "Boolean vectors is not host-shareable, use numeric vectors instead"

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


readonly [$repr]: v2b

BaseData.[$repr]

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


readonly componentCount: 2

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


readonly primitive: Bool

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


readonly type: "vec2<bool>"

BaseData.type

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

toString(): string

string

BaseData.toString

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