Skip to content

Bool

Boolean schema representing a single WGSL bool value. Cannot be used inside buffers as it is not host-shareable.

Bool(v?): boolean

Boolean schema representing a single WGSL bool value. Cannot be used inside buffers as it is not host-shareable.

number | boolean

boolean

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

[$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]: "Bool is not host-shareable, use U32 or I32 instead"

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


readonly [$repr]: boolean

BaseData.[$repr]

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


readonly type: "bool"

BaseData.type

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

toString(): string

string

BaseData.toString

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