uvec3

package
v0.0.0-...-ff35923 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package uvec3 provides GPU operations on three-component unsigned integer vectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitsToFloat

func BitsToFloat(a XYZ) gpu.Vec3

func Equal

func Equal(a, b XYZ) gpu.Vec2b

func GreaterThan

func GreaterThan(a, b XYZ) gpu.Vec3b

func GreaterThanEqual

func GreaterThanEqual(a, b XYZ) gpu.Vec3b

func LessThan

func LessThan(a, b XYZ) gpu.Vec3b

func LessThanEqual

func LessThanEqual(a, b XYZ) gpu.Vec3b

func NotEqual

func NotEqual(a, b XYZ) gpu.Vec3b

Types

type XYZ

type XYZ gpu.Vec3u

XYZ is a three-component vector of unsigned integers on the GPU.

func Add

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

func Clamp

func Clamp(a, min, max XYZ) XYZ

func ClampX

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

func Div

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

func Max

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

func Min

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

func Mul

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

func New

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

New creates a new XYZ value from three integers.

func Sub

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

Jump to

Keyboard shortcuts

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