ivec4

package
v0.0.0-...-a66c66c Latest Latest
Warning

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

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

Documentation

Overview

Package ivec4 provides GPU operations on four-component signed 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.Vec4i

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

func Abs

func Abs(a XYZW) XYZW

func Add

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

func Clamp

func Clamp[T XYZW | gpu.AnyInt](a XYZW, min, max T) XYZW

func Div

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

func Max

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

func Min

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

func Mul

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

func Neg

func Neg(a XYZW) XYZW

func New

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

New creates a new XYZW value from two integers.

func Sign

func Sign(a XYZW) XYZW

func Sub

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

Jump to

Keyboard shortcuts

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