bool

package
v0.0.0-...-5fa07e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package bool provides GPU operations on boolean values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mix

func Mix[A, B gpu.AnyFloat, T gpu.AnyBool](a A, b B, t T) gpu.Float

Types

type X

type X gpu.Bool

X is a boolean on the GPU, can only contain true or false.

func And

func And[A, B gpu.AnyBool](a A, b B) X

func Eq

func Eq[A, B gpu.AnyBool](a A, b B) X

func Neq

func Neq[A, B gpu.AnyBool](a A, b B) X

func New

func New[T gpu.AnyBool](x T) X

New creates a new X value from a boolean.

func Not

func Not[A gpu.AnyBool](a A) X

func Or

func Or[A, B gpu.AnyBool](a A, b B) X

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL