Gorgon
Show / Hide Table of Contents

Struct GorgonVertexPosUv

A vertex with a position, and UV texture coordinate.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Gorgon.Renderers.Geometry
Assembly: Gorgon.Graphics.Core.dll
Syntax
public struct GorgonVertexPosUv

Constructors

| Edit this page View Source

GorgonVertexPosUv(Vector3, Vector2)

Initializes a new instance of the GorgonVertexPosUv struct.

Declaration
public GorgonVertexPosUv(Vector3 pos, Vector2 uv)
Parameters
Type Name Description
Vector3 pos

The position.

Vector2 uv

The texture coordinates.

| Edit this page View Source

GorgonVertexPosUv(Vector4, Vector2)

Initializes a new instance of the GorgonVertexPosUv struct.

Declaration
public GorgonVertexPosUv(Vector4 pos, Vector2 uv)
Parameters
Type Name Description
Vector4 pos

The position.

Vector2 uv

The texture coordinates.

Fields

| Edit this page View Source

Position

The position of the vertex.

Declaration
[InputElement(0, "SV_POSITION")]
public Vector4 Position
Field Value
Type Description
Vector4
| Edit this page View Source

SizeInBytes

The size of the vertex, in bytes.

Declaration
public static readonly int SizeInBytes
Field Value
Type Description
int
| Edit this page View Source

UV

The texture coordinate for the vertex.

Declaration
[InputElement(1, "TEXCOORD")]
public Vector2 UV
Field Value
Type Description
Vector2

Methods

| Edit this page View Source

Deconstruct(out Vector4, out Vector2)

Deconstructs this instance into a tuple.

Declaration
public readonly void Deconstruct(out Vector4 position, out Vector2 uv)
Parameters
Type Name Description
Vector4 position

The position.

Vector2 uv

The texture coordinate.

| Edit this page View Source

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.

Extension Methods

GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author