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 ¶
Types ¶
type Bool ¶
type Bool int32
Bool is an HLSL friendly int32 Bool type.
func (*Bool) FromString ¶ added in v1.0.5
FromString sets the bool from the given string
func (Bool) MarshalJSON ¶ added in v1.0.6
MarshalJSON implements the encoding/json.Marshaler interface
func (*Bool) UnmarshalJSON ¶ added in v1.0.6
UnmarshalJSON implements the encoding/json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.