Struct SRgb8A8Etc2
- Namespace
- Microsoft.Xna.Framework.Graphics.PackedVector
- Assembly
- MonoGame.Framework.dll
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.
public struct SRgb8A8Etc2 : IPackedVector<uint>, IEquatable<SRgb8A8Etc2>, IPackedVector
- Implements
- Inherited Members
Constructors
SRgb8A8Etc2(Vector4)
Initializes a new instance of this structure.
public SRgb8A8Etc2(Vector4 vector)
Parameters
SRgb8A8Etc2(float, float, float, float)
Initializes a new instance of this structure.
public SRgb8A8Etc2(float x, float y, float z, float w)
Parameters
xfloatThe initial x-component value for this structure.
yfloatThe initial y-component value for this structure.
zfloatThe initial z-component value for this structure.
wfloatThe initial w-component value for this structure.
Properties
PackedValue
Directly gets or sets the packed representation of the value.
public uint PackedValue { get; set; }
Property Value
Methods
Equals(SRgb8A8Etc2)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SRgb8A8Etc2 other)
Parameters
otherSRgb8A8Etc2An object to compare with this object.
Returns
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.
ToVector4()
Expands the packed representation into a Vector4.
public Vector4 ToVector4()
Returns
Operators
operator ==(SRgb8A8Etc2, SRgb8A8Etc2)
Returns a value that indicates whether the two values are equal.
public static bool operator ==(SRgb8A8Etc2 lhs, SRgb8A8Etc2 rhs)
Parameters
lhsSRgb8A8Etc2The value on the left of the equality operator.
rhsSRgb8A8Etc2The value on the right of the equality operator.
Returns
- bool
true if the two values are equal; otherwise, false.
operator !=(SRgb8A8Etc2, SRgb8A8Etc2)
Returns a value that indicates whether the two value are not equal.
public static bool operator !=(SRgb8A8Etc2 lhs, SRgb8A8Etc2 rhs)
Parameters
lhsSRgb8A8Etc2The value on the left of the inequality operator.
rhsSRgb8A8Etc2The value on the right of the inequality operator.
Returns
- bool
true if the two value are not equal; otherwise, false.