slbool

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: BSD-3-Clause Imports: 0 Imported by: 6

README

slbool

slbool defines a HLSL and Go friendly int32 Bool type. The standard HLSL bool type causes obscure errors, and the int32 obeys the 4 byte basic alignment requirements.

gosl automatically converts this Go code into appropriate HLSL code.

Documentation

Overview

package slbool defines a HLSL friendly int32 Bool type. The standard HLSL bool type causes obscure errors, and the int32 obeys the 4 byte basic alignment requirements.

gosl automatically converts this Go code into appropriate HLSL code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFalse

func IsFalse(b Bool) bool

func IsTrue

func IsTrue(b Bool) bool

Types

type Bool

type Bool int32
const (
	False Bool = 0
	True  Bool = 1
)

func FromBool

func FromBool(b bool) Bool

Jump to

Keyboard shortcuts

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