Table of Contents

Struct Bool

Namespace
Xui.GPU.Shaders.Types
Assembly
Xui.Core.dll

Shader boolean type.

public readonly struct Bool
Inherited Members

Constructors

Bool(bool)

Initializes a new instance of the Bool struct.

public Bool(bool value)

Parameters

value bool

The bool value.

Properties

False

Gets the false constant.

public static Bool False { get; }

Property Value

Bool

True

Gets the true constant.

public static Bool True { get; }

Property Value

Bool

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator &(Bool, Bool)

Performs logical AND of two Bool values.

public static Bool operator &(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

Bool

operator |(Bool, Bool)

Performs logical OR of two Bool values.

public static Bool operator |(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

Bool

operator ==(Bool, Bool)

Tests equality of two Bool values.

public static Bool operator ==(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

Bool

implicit operator Bool(bool)

Converts from bool to Bool.

public static implicit operator Bool(bool value)

Parameters

value bool

Returns

Bool

implicit operator bool(Bool)

Converts from Bool to bool.

public static implicit operator bool(Bool value)

Parameters

value Bool

Returns

bool

operator !=(Bool, Bool)

Tests inequality of two Bool values.

public static Bool operator !=(Bool left, Bool right)

Parameters

left Bool
right Bool

Returns

Bool

operator !(Bool)

Performs logical NOT of a Bool value.

public static Bool operator !(Bool value)

Parameters

value Bool

Returns

Bool