sltype

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: BSD-3-Clause Imports: 1 Imported by: 1

README

sltype

Package sltype provides type definitions for standard HLSL types, using aliases to the equivalent mat32 types where possible, but including other type names not defined there.

These types will be converted to their equivalent HLSL types automatically by gosl, as will the corresponding mat32 type names.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float = float32

Float is identical to a float32

type Float2

type Float2 = mat32.Vec2

Float2 is a length 2 vector of float32

type Float3

type Float3 = mat32.Vec3

Float3 is a length 3 vector of float32

type Float4

type Float4 = mat32.Vec4

Float4 is a length 4 vector of float32

type Int

type Int = int32

Int is identical to an int32

type Int2

type Int2 = mat32.Vec2i

Int2 is a length 2 vector of int32

type Int3

type Int3 = mat32.Vec3i

Int3 is a length 3 vector of int32

type Int4

type Int4 struct {
	X int32
	Y int32
	Z int32
	W int32
}

Int4 is a length 4 vector of int32

type Uint

type Uint = uint32

Uint is identical to a uint32

type Uint2

type Uint2 struct {
	X uint32
	Y uint32
}

Uint2 is a length 2 vector of uint32

type Uint3

type Uint3 struct {
	X uint32
	Y uint32
	Z uint32
}

Uint3 is a length 3 vector of uint32

type Uint4

type Uint4 struct {
	X uint32
	Y uint32
	Z uint32
	W uint32
}

Uint4 is a length 4 vector of uint32

func (*Uint4) SetFrom2

func (u *Uint4) SetFrom2(u2 Uint2)

Jump to

Keyboard shortcuts

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