Skip to content

Bool

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

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

Bool(v?): boolean

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

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

number | boolean

boolean

[$gpuCallable]: object

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

optional strictSignature: object

argTypes: (BaseData | BaseData[])[]

returnType: BaseData

call(ctx, args): Snippet

ResolutionCtx

[Snippet]

Snippet

DualFn.[$gpuCallable]


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:610


readonly [$repr]: boolean

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

BaseData.[$repr]


readonly type: "bool"

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

BaseData.type

toString(): string

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

string

BaseData.toString