Table of Contents

Struct U32

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

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

value uint

The uint value.

Properties

One

Gets the one constant.

public static U32 One { get; }

Property Value

U32

Zero

Gets the zero constant.

public static U32 Zero { get; }

Property Value

U32

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

Adds two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator &(U32, U32)

Performs bitwise AND of two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator |(U32, U32)

Performs bitwise OR of two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator /(U32, U32)

Divides two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator ==(U32, U32)

Tests equality of two U32 values.

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

Parameters

left U32
right U32

Returns

Bool

operator ^(U32, U32)

Performs bitwise XOR of two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator >(U32, U32)

Tests if left is greater than right.

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

Parameters

left U32
right U32

Returns

Bool

operator >=(U32, U32)

Tests if left is greater than or equal to right.

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

Parameters

left U32
right U32

Returns

Bool

implicit operator U32(uint)

Converts from uint to U32.

public static implicit operator U32(uint value)

Parameters

value uint

Returns

U32

implicit operator uint(U32)

Converts from U32 to uint.

public static implicit operator uint(U32 value)

Parameters

value U32

Returns

uint

operator !=(U32, U32)

Tests inequality of two U32 values.

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

Parameters

left U32
right U32

Returns

Bool

operator <<(U32, int)

Left shifts a U32 value.

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

Parameters

left U32
right int

Returns

U32

operator <(U32, U32)

Tests if left is less than right.

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

Parameters

left U32
right U32

Returns

Bool

operator <=(U32, U32)

Tests if left is less than or equal to right.

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

Parameters

left U32
right U32

Returns

Bool

operator *(U32, U32)

Multiplies two U32 values.

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

Parameters

left U32
right U32

Returns

U32

operator ~(U32)

Performs bitwise NOT of a U32 value.

public static U32 operator ~(U32 value)

Parameters

value U32

Returns

U32

operator >>(U32, int)

Right shifts a U32 value.

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

Parameters

left U32
right int

Returns

U32

operator -(U32, U32)

Subtracts two U32 values.

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

Parameters

left U32
right U32

Returns

U32