Bool
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>
Bool(
v?):boolean
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
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:565
Properties
Section titled “Properties”[$gpuCallable]
Section titled “[$gpuCallable]”[$gpuCallable]:
object
strictSignature?
Section titled “strictSignature?”
optionalstrictSignature:object
strictSignature.argTypes
Section titled “strictSignature.argTypes”strictSignature.returnType
Section titled “strictSignature.returnType”returnType:
BaseData
call()
Section titled “call()”Parameters
Section titled “Parameters”ResolutionCtx
[Snippet]
Returns
Section titled “Returns”Snippet
Inherited from
Section titled “Inherited from”DualFn.[$gpuCallable]
Defined in
Section titled “Defined in”packages/typegpu/src/types.ts:340
[$internal]
Section titled “[$internal]”
readonly[$internal]:Record<string,unknown>
Inherited from
Section titled “Inherited from”Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:40
[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly[$invalidSchemaReason]:"Bool is not host-shareable, use U32 or I32 instead"
Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:570
[$repr]
Section titled “[$repr]”
readonly[$repr]:boolean
Overrides
Section titled “Overrides”Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:569
readonlytype:"bool"
Overrides
Section titled “Overrides”Defined in
Section titled “Defined in”packages/typegpu/src/data/wgslTypes.ts:566
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Returns
Section titled “Returns”string