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.
Extends
Section titled “Extends”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.
Parameters
Section titled “Parameters”number
| boolean
Returns
Section titled “Returns”boolean
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
Defined in: packages/typegpu/src/data/wgslTypes.ts:32
Inherited from
Section titled “Inherited from”[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly
[$invalidSchemaReason]:"Bool is not host-shareable, use U32 or I32 instead"
Defined in: packages/typegpu/src/data/wgslTypes.ts:767
[$repr]
Section titled “[$repr]”
readonly
[$repr]:boolean
Defined in: packages/typegpu/src/data/wgslTypes.ts:766
Overrides
Section titled “Overrides”
readonly
type:"bool"
Defined in: packages/typegpu/src/data/wgslTypes.ts:763