uvec2

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 uvec2 provides GPU operations on two-component unsigned integer vectors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitsToFloat

func BitsToFloat(a XY) gpu.Vec2

func Equal

func Equal(a, b XY) gpu.Vec2b

func GreaterThan

func GreaterThan(a, b XY) gpu.Vec2b

func GreaterThanEqual

func GreaterThanEqual(a, b XY) gpu.Vec2b

func LessThan

func LessThan(a, b XY) gpu.Vec2b

func LessThanEqual

func LessThanEqual(a, b XY) gpu.Vec2b

func NotEqual

func NotEqual(a, b XY) gpu.Vec2b

Types

type XY

type XY gpu.Vec2u

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

func Add

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

func Clamp

func Clamp(a, min, max XY) XY

func ClampX

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

func Div

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

func Max

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

func Min

func Min[B gpu.AnyUint | XY](a XY, b B) XY

func Mul

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

func New

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

New creates a new XY value from two integers.

func Sub

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

Jump to

Keyboard shortcuts

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