public unsafe void SetValue(VertexElement element, Microsoft.Xna.Framework.Graphics.PackedVector.NormalizedByte4 value) { if (element.VertexElementFormat != VertexElementFormat.Byte4) { throw new ArgumentException(nameof(element)); } var dst = _Vertex.Slice(element.Offset, sizeof(Microsoft.Xna.Framework.Graphics.PackedVector.Byte4)); System.Runtime.InteropServices.MemoryMarshal.Write(dst, ref value); }
public bool Equals(NormalizedByte4 other) { return(_packed == other._packed); }
public bool Equals(NormalizedByte4 other) { return(packedValue == other.packedValue); }
public bool Equals(NormalizedByte4 other) { throw new NotImplementedException(); }