Class VertexBuffer
Represents a vertex buffer.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class VertexBuffer : GraphicBuffer
Constructors
VertexBuffer(Buffer, LayoutDescription)
Initializes a new instance of the VertexBuffer class.
Declaration
public VertexBuffer(Buffer buffer, LayoutDescription vertexLayout)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
LayoutDescription | vertexLayout | The layout of each vertex. |
VertexBuffer(Buffer, LayoutDescription, int, int, nint)
Initializes a new instance of the VertexBuffer class.
Declaration
public VertexBuffer(Buffer buffer, LayoutDescription vertexLayout, int offset, int size, nint data = 0)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
LayoutDescription | vertexLayout | The vertex layout of each vertex. |
int | offset | The offset relative to the buffer. |
int | size | The size of the vertex buffer. |
nint | data | The raw data source. |
Fields
LayoutDescription
Represents the vertex layout.
Declaration
public readonly LayoutDescription LayoutDescription
Field Value
Type | Description |
---|---|
LayoutDescription |
VertexCount
The number of vertices.
Declaration
public readonly int VertexCount
Field Value
Type | Description |
---|---|
int |