Bool
Defined in: packages/typegpu/src/data/wgslTypes.ts:775
Boolean schema representing a single WGSL bool value. Cannot be used inside buffers as it is not host-shareable.
Extends
Section titled “Extends”DualFn
<(v
?) =>boolean
>
Bool(
v
?):boolean
Defined in: packages/typegpu/src/data/wgslTypes.ts:775
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]:object
Defined in: packages/typegpu/src/data/dualFn.ts:8
argConversionHint
Section titled “argConversionHint”argConversionHint:
FnArgsConversionHint
gpuImpl()
Section titled “gpuImpl()”gpuImpl: (…
args
) =>Snippet
Parameters
Section titled “Parameters”…[Snippet
]
Returns
Section titled “Returns”Snippet
jsImpl()
Section titled “jsImpl()”jsImpl: (
v
?) =>boolean
Parameters
Section titled “Parameters”number
| boolean
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”DualFn.[$internal]
[$invalidSchemaReason]
Section titled “[$invalidSchemaReason]”
readonly
[$invalidSchemaReason]:"Bool is not host-shareable, use U32 or I32 instead"
Defined in: packages/typegpu/src/data/wgslTypes.ts:780
[$repr]
Section titled “[$repr]”
readonly
[$repr]:boolean
Defined in: packages/typegpu/src/data/wgslTypes.ts:779
readonly
type:"bool"
Defined in: packages/typegpu/src/data/wgslTypes.ts:776