Struct Bool
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
valueboolThe bool value.
Properties
False
Gets the false constant.
public static Bool False { get; }
Property Value
True
Gets the true constant.
public static Bool True { get; }
Property Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Returns
operator |(Bool, Bool)
Performs logical OR of two Bool values.
public static Bool operator |(Bool left, Bool right)
Parameters
Returns
operator ==(Bool, Bool)
Tests equality of two Bool values.
public static Bool operator ==(Bool left, Bool right)
Parameters
Returns
implicit operator Bool(bool)
Converts from bool to Bool.
public static implicit operator Bool(bool value)
Parameters
valuebool
Returns
implicit operator bool(Bool)
Converts from Bool to bool.
public static implicit operator bool(Bool value)
Parameters
valueBool
Returns
operator !=(Bool, Bool)
Tests inequality of two Bool values.
public static Bool operator !=(Bool left, Bool right)
Parameters
Returns
operator !(Bool)
Performs logical NOT of a Bool value.
public static Bool operator !(Bool value)
Parameters
valueBool