bvec2

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

Pacakge bvec2 provides GPU operations on two-component boolean vectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(a XY) gpu.Bool

func Any

func Any(a XY) gpu.Bool

func Mix

func Mix(a, b gpu.Vec2, t XY) gpu.Vec2

Types

type XY

type XY gpu.Vec2b

XY is a two-component vector of booleans on the GPU.

func And

func And(a, b XY) XY

func Eq

func Eq(a, b XY) XY

func Neq

func Neq(a, b XY) XY

func New

func New[X, Y gpu.AnyBool](x X, y Y) XY

New creates a new XY value from two booleans.

func Not

func Not(a XY) XY

func Or

func Or(a, b XY) XY

Jump to

Keyboard shortcuts

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