4 using System.Runtime.InteropServices;
5 using SiliconStudio.Core.Mathematics;
7 namespace SiliconStudio.
Paradox.Graphics
12 [StructLayout(LayoutKind.Sequential)]
47 public static readonly
int Size = 24;
64 public override bool Equals(
object obj)
66 if (ReferenceEquals(null, obj))
return false;
74 int hashCode = Position.GetHashCode();
83 return left.Equals(right);
88 return !left.Equals(right);
static VertexElement Color(PixelFormat format, int offsetInBytes=AppendAligned)
Declares a VertexElement with the semantic "COLOR".
bool Equals(Color other)
Determines whether the specified Color is equal to this instance.
The layout of a vertex buffer with a set of VertexElement.
Represents a two dimensional mathematical vector.
static VertexElement TextureCoordinate(PixelFormat format, int offsetInBytes=AppendAligned)
Declares a VertexElement with the semantic "TEXCOORD".
override int GetHashCode()
Vector2 TextureCoordinate
UV texture coordinates.
Represents a three dimensional mathematical vector.
TextureCoordinate
The texture coordinate.
Color Color
The vertex color.
VertexPositionColorTexture(Vector3 position, Color color, Vector2 textureCoordinate)
Initializes a new VertexPositionColorTexture instance.
Vector3 Position
XYZ position.
override bool Equals(object obj)
override int GetHashCode()
Returns a hash code for this instance.
override string ToString()
SiliconStudio.Core.Mathematics.Color Color
Represents a 32-bit color (4 bytes) in the form of RGBA (in byte order: R, G, B, A).
static VertexElement Position(PixelFormat format, int offsetInBytes=AppendAligned)
Declares a VertexElement with the semantic "POSITION".
Describes a custom vertex format structure that contains position and color information.
A description of a single element for the input-assembler stage. This structure is related to Direct3...
bool Equals(VertexPositionColorTexture other)