Skip to content

Bool

Defined in: packages/typegpu/src/data/wgslTypes.ts:629

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

  • BaseData.DualFn<(v) => boolean & () => boolean>

Bool(v): boolean

Defined in: packages/typegpu/src/data/wgslTypes.ts:630

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

number | boolean

boolean

Bool(): boolean

Defined in: packages/typegpu/src/data/wgslTypes.ts:630

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

boolean

optional [$gpuCallableStrictSignature]: GPUCallableStrictSignature

Defined in: packages/typegpu/src/types.ts:484

DualFn.[$gpuCallableStrictSignature]


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

Defined in: packages/typegpu/src/data/wgslTypes.ts:46

BaseData.[$internal]


readonly [$invalidSchemaReason]: "Bool is not host-shareable, use U32 or I32 instead"

Defined in: packages/typegpu/src/data/wgslTypes.ts:635


readonly [$repr]: boolean

Defined in: packages/typegpu/src/data/wgslTypes.ts:634

BaseData.[$repr]


readonly type: "bool"

Defined in: packages/typegpu/src/data/wgslTypes.ts:631

BaseData.type

[$gpuCallable](ctx, args): Snippet

Defined in: packages/typegpu/src/types.ts:483

ResolutionCtx

readonly []

Snippet

DualFn.[$gpuCallable]


toString(): string

Defined in: packages/typegpu/src/data/wgslTypes.ts:49

string

BaseData.toString

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.