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