Rgba1010102

struct Rgba1010102 : System.ValueType, Microsoft.Xna.Framework.Graphics.PackedVector.IPackedVector<UInt32>, IPackedVector, System.IEquatable<Rgba1010102>

Packed vector type containing unsigned normalized values ranging from 0 to 1. The x, y and z components use 10 bits, and the w component uses 2 bits.

uint PackedValue

Gets and sets the packed value.

Vector4 ToVector4()

Gets the packed vector in Vector4 format.

Returns:The packed vector in Vector4 format
bool Equals(System.Object obj)

Compares an object with the packed vector.

Parameters:
  • obj (System.Object) – The object to compare.
Returns:

True if the object is equal to the packed vector.

bool Equals(Rgba1010102 other)

Compares another Rgba1010102 packed vector with the packed vector.

Parameters:
  • other (Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102) – The Rgba1010102 packed vector to compare.
Returns:

True if the packed vectors are equal.

string ToString()

Gets a string representation of the packed vector.

Returns:A string representation of the packed vector.
int GetHashCode()

Gets a hash code of the packed vector.

Returns:The hash code for the packed vector.
bool op_Equality(Rgba1010102 lhs, Rgba1010102 rhs)
Parameters:
  • lhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102) –
  • rhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102) –
bool op_Inequality(Rgba1010102 lhs, Rgba1010102 rhs)
Parameters:
  • lhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102) –
  • rhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102) –