Esempio n. 1
0
            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);
            }
Esempio n. 2
0
 public bool Equals(NormalizedShort4 other)
 {
     return(packedValue.Equals(other.packedValue));
 }
 public bool Equals(NormalizedShort4 other)
 {
     return(short4Packed.Equals(other.short4Packed));
 }
Esempio n. 4
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.short4Packed = NormalizedShort4.PackInFour(vector.X, vector.Y, vector.Z, vector.W);
 }
Esempio n. 5
0
 public NormalizedShort4(float x, float y, float z, float w)
 {
     this.short4Packed = NormalizedShort4.PackInFour(x, y, z, w);
 }
Esempio n. 6
0
 public NormalizedShort4(Vector4 vector)
 {
     this.short4Packed = NormalizedShort4.PackInFour(vector.X, vector.Y, vector.Z, vector.W);
 }
Esempio n. 7
0
 public bool Equals(NormalizedShort4 other)
 {
     throw new NotImplementedException();
 }