Skip to content

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.

  • 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.

number | boolean

boolean

readonly [$internal]: object

Defined in: packages/typegpu/src/data/dualFn.ts:8

argConversionHint: FnArgsConversionHint

gpuImpl: (…args) => Snippet

…[Snippet]

Snippet

jsImpl: (v?) => boolean

number | boolean

boolean

DualFn.[$internal]


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

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


readonly [$repr]: boolean

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


readonly type: "bool"

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