slbool

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 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

func (*Bool) FromString added in v1.0.5

func (b *Bool) FromString(s string)

func (Bool) IsFalse added in v1.0.5

func (b Bool) IsFalse() bool

func (Bool) IsTrue added in v1.0.5

func (b Bool) IsTrue() bool

func (Bool) MarshalJSON added in v1.0.6

func (b Bool) MarshalJSON() ([]byte, error)

func (*Bool) SetBool added in v1.0.5

func (b *Bool) SetBool(bb bool)

func (Bool) String added in v1.0.5

func (b Bool) String() string

func (*Bool) UnmarshalJSON added in v1.0.6

func (b *Bool) UnmarshalJSON(s []byte) error

Jump to

Keyboard shortcuts

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