Click or drag to resize

VertexElement Structure

This structure declares the usage of a single vertex buffer as a component of a complete vertex declaration.
Inheritance Hierarchy
SystemObject
  SystemValueType
    NeoAxisVertexElement

Namespace: NeoAxis
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public struct VertexElement

The VertexElement type exposes the following members.

Constructors
 NameDescription
Public methodVertexElementInitializes a new instance of the VertexElement class
Top
Properties
 NameDescription
Public propertyOffsetGets the offset into the buffer where this element starts in bytes.
Public propertySemanticGets the meaning of this element.
Public propertySourceGets the vertex buffer index from where this element draws it's values.
Public propertyTypeGets the data format of this element.
Top
Methods
 NameDescription
Public methodStatic memberConvertColorValueUtility method for converting color to a packed 32-bit color type.
Public methodEquals
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode
(Overrides ValueTypeGetHashCode)
Public methodGetSizeInBytesGets the size of this element in bytes.
Public methodStatic memberGetSizeInBytes(VertexElementType)Utility method for helping to calculate offsets.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString
(Overrides ValueTypeToString)
Top
Operators
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
Remarks
Several vertex buffers can be used to supply the input geometry for a rendering operation, and in each case a vertex buffer can be used in different ways for different operations; the buffer itself does not define the semantics (position, normal etc), the VertexElement class does.
See Also