VertexElement¶
-
struct
VertexElement
: System.ValueType, System.IEquatable<VertexElement> Defines a single element in a vertex.
-
int
Offset
Gets or sets the offset in bytes from the beginning of the stream to the vertex element.
Value: The offset in bytes.
-
VertexElementFormat
VertexElementFormat
Gets or sets the data format.
Value: The data format.
-
VertexElementUsage
VertexElementUsage
Gets or sets the HLSL semantic of the element in the vertex shader input.
Value: The HLSL semantic of the element in the vertex shader input.
-
int
UsageIndex
Gets or sets the semantic index.
Value: The semantic index, which is required if the semantic is used for more than one vertex element.
-
int
GetHashCode
() Returns a hash code for this instance.
Returns: A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
-
string
ToString
() Returns a T:System.String that represents this instance.
Returns: A T:System.String that represents this instance.
-
bool
Equals
(System.Object obj) Determines whether the specified T:System.Object is equal to this instance.
Parameters: - obj (System.Object) – The object to compare with the current object.
Returns: - :ref:`` if the specified T:System.Object is equal to this instance;
otherwise, :ref:``.
-
bool
Equals
(VertexElement other) Determines whether the specified T:Microsoft.Xna.Framework.Graphics.VertexElement is equal to this instance.
Parameters: - other (Microsoft.Xna.Framework.Graphics.VertexElement) – The object to compare with the current object.
Returns: - :ref:`` if the specified T:Microsoft.Xna.Framework.Graphics.VertexElement is equal to this
instance; otherwise, :ref:``.
-
bool
op_Equality
(VertexElement left, VertexElement right) Compares two T:Microsoft.Xna.Framework.Graphics.VertexElement instances to determine whether they are the same.
Parameters: - left (Microsoft.Xna.Framework.Graphics.VertexElement) – The first instance.
- right (Microsoft.Xna.Framework.Graphics.VertexElement) – The second instance.
Returns: - :ref:`` if the and are
the same; otherwise, :ref:``.
-
bool
op_Inequality
(VertexElement left, VertexElement right) Compares two T:Microsoft.Xna.Framework.Graphics.VertexElement instances to determine whether they are different.
Parameters: - left (Microsoft.Xna.Framework.Graphics.VertexElement) – The first instance.
- right (Microsoft.Xna.Framework.Graphics.VertexElement) – The second instance.
Returns: - :ref:`` if the and are
the different; otherwise, :ref:``.
-
SharpDX.Direct3D11.InputElement
GetInputElement
(int slot, int instanceFrequency) Gets the DirectX T:SharpDX.Direct3D11.InputElement.
Parameters: - slot (int) – The input resource slot.
- instanceFrequency (int) – The number of instances to draw using the same per-instance data before advancing in the buffer by one element. This value must be 0 for an element that contains per-vertex data.
Returns: T:SharpDX.Direct3D11.InputElement.
-
int