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