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.
Extends
Section titled “Extends”BaseData.DualFn<(v) =>boolean& () =>boolean>
Call Signature
Section titled “Call Signature”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.
Parameters
Section titled “Parameters”number | boolean
Returns
Section titled “Returns”boolean
Call Signature
Section titled “Call Signature”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.
Returns
Section titled “Returns”boolean
Properties
Section titled “Properties”[$gpuCallableStrictSignature]?
Section titled “[$gpuCallableStrictSignature]?”
optional[$gpuCallableStrictSignature]:GPUCallableStrictSignature
Defined in: packages/typegpu/src/types.ts:484
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallableStrictSignature]
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Defined in: packages/typegpu/src/data/wgslTypes.ts:46
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:635
[$repr]
Section titled “[$repr]”
readonly[$repr]:boolean
Defined in: packages/typegpu/src/data/wgslTypes.ts:634
Overrides
Section titled “Overrides”
readonlytype:"bool"
Defined in: packages/typegpu/src/data/wgslTypes.ts:631
Overrides
Section titled “Overrides”Methods
Section titled “Methods”[$gpuCallable]()
Section titled “[$gpuCallable]()”[$gpuCallable](
ctx,args):Snippet
Defined in: packages/typegpu/src/types.ts:483
Parameters
Section titled “Parameters”ResolutionCtx
readonly []
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/data/wgslTypes.ts:49
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.