uint

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

Documentation

Overview

Package uint provides GPU operations on unsigned integer values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitsToFloat

func BitsToFloat[A gpu.AnyUint](a A) gpu.Float

func Eq

func Eq[A, B gpu.AnyUint](a A, b B) gpu.Bool

func Gt

func Gt[A, B gpu.AnyUint](a A, b B) gpu.Bool

func Gte

func Gte[A, B gpu.AnyUint](a A, b B) gpu.Bool

func Lt

func Lt[A, B gpu.AnyUint](a A, b B) gpu.Bool

func Lte

func Lte[A, B gpu.AnyUint](a A, b B) gpu.Bool

func Neq

func Neq[A, B gpu.AnyUint](a A, b B) gpu.Bool

func UnpackHalf2x16

func UnpackHalf2x16(a X) gpu.Vec2

func UnpackSnorm2x16

func UnpackSnorm2x16(a X) gpu.Vec2

func UnpackUnorm2x16

func UnpackUnorm2x16(a X) gpu.Vec2

Types

type X

type X gpu.Uint

X is a unsigned integer on the GPU (represented by an unspecified number of bits).

func Abs

func Abs[A gpu.AnyUint](a A) X

func Add

func Add[A, B gpu.AnyUint](a A, b B) X

func Clamp

func Clamp[A, B, C gpu.AnyUint](a A, b B, c C) X

func Div

func Div[A, B gpu.AnyUint](a A, b B) X

func Max

func Max[A, B gpu.AnyUint](a A, b B) X

func Min

func Min[A, B gpu.AnyUint](a A, b B) X

func Mod

func Mod[A, B gpu.AnyUint](a A, b B) X

func Mul

func Mul[A, B gpu.AnyUint](a A, b B) X

func New

func New[T gpu.AnyUint](x T) X

New creates a new X value from an integer.

func Sub

func Sub[A, B gpu.AnyUint](a A, b B) X

Jump to

Keyboard shortcuts

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