示例#1
0
            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);
            }
示例#2
0
 public bool Equals(NormalizedByte4 other)
 {
     return(_packed == other._packed);
 }
示例#3
0
 public bool Equals(NormalizedByte4 other)
 {
     return(packedValue == other.packedValue);
 }
示例#4
0
 public bool Equals(NormalizedByte4 other)
 {
     throw new NotImplementedException();
 }