Struct RawBool
- Namespace
- SharpVulkan
- Assembly
- Lime.dll
A boolean value stored on 4 bytes (instead of 1 in .NET).
public struct RawBool : IEquatable<RawBool>
- Implements
- Inherited Members
Constructors
RawBool(bool)
Initializes a new instance of the RawBool class.
public RawBool(bool boolValue)
Parameters
boolValueboolif set to
true[bool value].
Methods
Equals(RawBool)
Indicates whether this instance and a specified object are equal.
public bool Equals(RawBool other)
Parameters
otherRawBoolThe other.
Returns
- bool
true if
otherand this instance are the same type and represent the same value; otherwise, false.
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 ==(RawBool, RawBool)
Implements the ==.
public static bool operator ==(RawBool left, RawBool right)
Parameters
Returns
- bool
The result of the operator.
implicit operator bool(RawBool)
public static implicit operator bool(RawBool booleanValue)
Parameters
booleanValueRawBoolThe value.
Returns
- bool
The result of the conversion.
implicit operator int(RawBool)
public static implicit operator int(RawBool booleanValue)
Parameters
booleanValueRawBool
Returns
implicit operator RawBool(bool)
public static implicit operator RawBool(bool boolValue)
Parameters
boolValueboolThe value.
Returns
- RawBool
The result of the conversion.
implicit operator RawBool(int)
public static implicit operator RawBool(int boolValue)
Parameters
boolValueint
Returns
operator !=(RawBool, RawBool)
Implements the !=.
public static bool operator !=(RawBool left, RawBool right)
Parameters
Returns
- bool
The result of the operator.