4 using System.Runtime.InteropServices;
6 using SiliconStudio.Core.Mathematics;
8 namespace SiliconStudio.
Paradox.Graphics
13 [StructLayout(LayoutKind.Sequential)]
34 public static readonly
int Size = 8;
43 return Position.Equals(other.Position);
46 public override bool Equals(
object obj)
48 if (ReferenceEquals(null, obj))
return false;
56 return Position.GetHashCode();
62 return left.Equals(right);
67 return !left.Equals(right);
72 return string.Format(
"Position: {0}", Position);
The layout of a vertex buffer with a set of VertexElement.
Represents a two dimensional mathematical vector.
override bool Equals(object obj)
override string ToString()
bool Equals(VertexPosition2 other)
Describes a custom vertex format structure that contains position as a Vector2.
override int GetHashCode()
static VertexElement Position(PixelFormat format, int offsetInBytes=AppendAligned)
Declares a VertexElement with the semantic "POSITION".
VertexPosition2(Vector2 position)
Initializes a new VertexPositionTexture instance.
Vector2 Position
XY position.
A description of a single element for the input-assembler stage. This structure is related to Direct3...