Skip to content

Bool

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

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

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

number | boolean

boolean

readonly [$internal]: true

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

BaseData.[$internal]


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

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


readonly [$repr]: boolean

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

BaseData.[$repr]


readonly type: "bool"

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

BaseData.type