Struct U32
Shader 32-bit unsigned integer scalar type.
public readonly struct U32
- Inherited Members
Constructors
U32(uint)
Initializes a new instance of the U32 struct.
public U32(uint value)
Parameters
valueuintThe uint value.
Properties
One
Gets the one constant.
public static U32 One { get; }
Property Value
Zero
Gets the zero constant.
public static U32 Zero { 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 +(U32, U32)
Adds two U32 values.
public static U32 operator +(U32 left, U32 right)
Parameters
Returns
operator &(U32, U32)
Performs bitwise AND of two U32 values.
public static U32 operator &(U32 left, U32 right)
Parameters
Returns
operator |(U32, U32)
Performs bitwise OR of two U32 values.
public static U32 operator |(U32 left, U32 right)
Parameters
Returns
operator /(U32, U32)
Divides two U32 values.
public static U32 operator /(U32 left, U32 right)
Parameters
Returns
operator ==(U32, U32)
Tests equality of two U32 values.
public static Bool operator ==(U32 left, U32 right)
Parameters
Returns
operator ^(U32, U32)
Performs bitwise XOR of two U32 values.
public static U32 operator ^(U32 left, U32 right)
Parameters
Returns
operator >(U32, U32)
Tests if left is greater than right.
public static Bool operator >(U32 left, U32 right)
Parameters
Returns
operator >=(U32, U32)
Tests if left is greater than or equal to right.
public static Bool operator >=(U32 left, U32 right)
Parameters
Returns
implicit operator U32(uint)
Converts from uint to U32.
public static implicit operator U32(uint value)
Parameters
valueuint
Returns
implicit operator uint(U32)
Converts from U32 to uint.
public static implicit operator uint(U32 value)
Parameters
valueU32
Returns
operator !=(U32, U32)
Tests inequality of two U32 values.
public static Bool operator !=(U32 left, U32 right)
Parameters
Returns
operator <<(U32, int)
Left shifts a U32 value.
public static U32 operator <<(U32 left, int right)
Parameters
Returns
operator <(U32, U32)
Tests if left is less than right.
public static Bool operator <(U32 left, U32 right)
Parameters
Returns
operator <=(U32, U32)
Tests if left is less than or equal to right.
public static Bool operator <=(U32 left, U32 right)
Parameters
Returns
operator *(U32, U32)
Multiplies two U32 values.
public static U32 operator *(U32 left, U32 right)
Parameters
Returns
operator ~(U32)
Performs bitwise NOT of a U32 value.
public static U32 operator ~(U32 value)
Parameters
valueU32
Returns
operator >>(U32, int)
Right shifts a U32 value.
public static U32 operator >>(U32 left, int right)
Parameters
Returns
operator -(U32, U32)
Subtracts two U32 values.
public static U32 operator -(U32 left, U32 right)