uvec4

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: 2 Imported by: 0

Documentation

Overview

Package uvec4 provides GPU operations on four-component unsigned integer vectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitsToFloat

func BitsToFloat(a XYZW) gpu.Vec4

func Equal

func Equal(a, b XYZW) gpu.Vec4b

func GreaterThan

func GreaterThan(a, b XYZW) gpu.Vec4b

func GreaterThanEqual

func GreaterThanEqual(a, b XYZW) gpu.Vec4b

func LessThan

func LessThan(a, b XYZW) gpu.Vec4b

func LessThanEqual

func LessThanEqual(a, b XYZW) gpu.Vec4b

func NotEqual

func NotEqual(a, b XYZW) gpu.Vec4b

Types

type XYZW

type XYZW gpu.Vec4u

XYZW is a four-component vector of unsigned integers on the GPU.

func Add

func Add[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

func Clamp

func Clamp(a, min, max XYZW) XYZW

func ClampX

func ClampX[A, B gpu.AnyUint](a XYZW, min A, max B) XYZW

func Div

func Div[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

func Max

func Max[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

func Min

func Min[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

func Mul

func Mul[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

func New

func New[X, Y, Z, W gpu.AnyUint](x X, y Y, z Z, w W) XYZW

New creates a new XYZW value from two integers.

func Sub

func Sub[T gpu.AnyUint | XYZW](a XYZW, b T) XYZW

Jump to

Keyboard shortcuts

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