public unsafe void SetValue(VertexElement element, Microsoft.Xna.Framework.Graphics.PackedVector.NormalizedShort4 value) { if (element.VertexElementFormat != VertexElementFormat.NormalizedShort4) { throw new ArgumentException(nameof(element)); } var dst = _Vertex.Slice(element.Offset, sizeof(Microsoft.Xna.Framework.Graphics.PackedVector.NormalizedShort4)); System.Runtime.InteropServices.MemoryMarshal.Write(dst, ref value); }
public bool Equals(NormalizedShort4 other) { return(packedValue.Equals(other.packedValue)); }
public bool Equals(NormalizedShort4 other) { return(short4Packed.Equals(other.short4Packed)); }
void IPackedVector.PackFromVector4(Vector4 vector) { this.short4Packed = NormalizedShort4.PackInFour(vector.X, vector.Y, vector.Z, vector.W); }
public NormalizedShort4(float x, float y, float z, float w) { this.short4Packed = NormalizedShort4.PackInFour(x, y, z, w); }
public NormalizedShort4(Vector4 vector) { this.short4Packed = NormalizedShort4.PackInFour(vector.X, vector.Y, vector.Z, vector.W); }
public bool Equals(NormalizedShort4 other) { throw new NotImplementedException(); }