Table of Contents

Struct I32

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

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

value int

The int value.

Properties

One

Gets the one constant.

public static I32 One { get; }

Property Value

I32

Zero

Gets the zero constant.

public static I32 Zero { get; }

Property Value

I32

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 +(I32, I32)

Adds two I32 values.

public static I32 operator +(I32 left, I32 right)

Parameters

left I32
right I32

Returns

I32

operator &(I32, I32)

Performs bitwise AND of two I32 values.

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

Parameters

left I32
right I32

Returns

I32

operator |(I32, I32)

Performs bitwise OR of two I32 values.

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

Parameters

left I32
right I32

Returns

I32

operator /(I32, I32)

Divides two I32 values.

public static I32 operator /(I32 left, I32 right)

Parameters

left I32
right I32

Returns

I32

operator ==(I32, I32)

Tests equality of two I32 values.

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

Parameters

left I32
right I32

Returns

Bool

operator ^(I32, I32)

Performs bitwise XOR of two I32 values.

public static I32 operator ^(I32 left, I32 right)

Parameters

left I32
right I32

Returns

I32

operator >(I32, I32)

Tests if left is greater than right.

public static Bool operator >(I32 left, I32 right)

Parameters

left I32
right I32

Returns

Bool

operator >=(I32, I32)

Tests if left is greater than or equal to right.

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

Parameters

left I32
right I32

Returns

Bool

implicit operator I32(int)

Converts from int to I32.

public static implicit operator I32(int value)

Parameters

value int

Returns

I32

implicit operator int(I32)

Converts from I32 to int.

public static implicit operator int(I32 value)

Parameters

value I32

Returns

int

operator !=(I32, I32)

Tests inequality of two I32 values.

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

Parameters

left I32
right I32

Returns

Bool

operator <<(I32, int)

Left shifts an I32 value.

public static I32 operator <<(I32 left, int right)

Parameters

left I32
right int

Returns

I32

operator <(I32, I32)

Tests if left is less than right.

public static Bool operator <(I32 left, I32 right)

Parameters

left I32
right I32

Returns

Bool

operator <=(I32, I32)

Tests if left is less than or equal to right.

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

Parameters

left I32
right I32

Returns

Bool

operator *(I32, I32)

Multiplies two I32 values.

public static I32 operator *(I32 left, I32 right)

Parameters

left I32
right I32

Returns

I32

operator ~(I32)

Performs bitwise NOT of an I32 value.

public static I32 operator ~(I32 value)

Parameters

value I32

Returns

I32

operator >>(I32, int)

Right shifts an I32 value.

public static I32 operator >>(I32 left, int right)

Parameters

left I32
right int

Returns

I32

operator -(I32, I32)

Subtracts two I32 values.

public static I32 operator -(I32 left, I32 right)

Parameters

left I32
right I32

Returns

I32

operator -(I32)

Negates an I32 value.

public static I32 operator -(I32 value)

Parameters

value I32

Returns

I32