Struct GorgonVertexPosColor
A vertex with a position, and UV texture coordinate.
Inherited Members
Namespace: Gorgon.Renderers.Geometry
Assembly: Gorgon.Graphics.Core.dll
Syntax
public struct GorgonVertexPosColor
Constructors
| Edit this page View SourceGorgonVertexPosColor(Vector3, GorgonColor)
Initializes a new instance of the GorgonVertexPosColor struct.
Declaration
public GorgonVertexPosColor(Vector3 pos, GorgonColor color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pos | The position. |
GorgonColor | color | The diffuse color for the vertex. |
GorgonVertexPosColor(Vector4, GorgonColor)
Initializes a new instance of the GorgonVertexPosColor struct.
Declaration
public GorgonVertexPosColor(Vector4 pos, GorgonColor color)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | pos | The position. |
GorgonColor | color | The diffuse color for the vertex. |
Fields
| Edit this page View SourceColor
The texture coordinate for the vertex.
Declaration
[InputElement(1, "COLOR")]
public GorgonColor Color
Field Value
Type | Description |
---|---|
GorgonColor |
Position
The position of the vertex.
Declaration
[InputElement(0, "SV_POSITION")]
public Vector4 Position
Field Value
Type | Description |
---|---|
Vector4 |
SizeInBytes
The size of the vertex, in bytes.
Declaration
public static readonly int SizeInBytes
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceDeconstruct(out Vector4, out GorgonColor)
Deconstructs this instance into a tuple.
Declaration
public readonly void Deconstruct(out Vector4 position, out GorgonColor color)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | position | The position. |
GorgonColor | color | The color. |
Deconstruct(out float, out float, out float)
Deconstructs this instance into individual position values.
Declaration
public readonly void Deconstruct(out float x, out float y, out float z)
Parameters
Type | Name | Description |
---|---|---|
float | x | The X coordinate of the Position. |
float | y | The Y coordinate of the Position. |
float | z | The Z coordinate of the Position. |