Class VertexBuffer
Represents a vertex buffer.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class VertexBuffer : GraphicBuffer, IDisposable
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 vertex layout of each vertex. |
VertexBuffer(Buffer, LayoutDescription, int, int, IntPtr)
Initializes a new instance of the VertexBuffer class.
Declaration
public VertexBuffer(Buffer buffer, LayoutDescription vertexLayout, int offset, int size, IntPtr data = default)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | The buffer. |
LayoutDescription | vertexLayout | The vertex layout of each vertex. |
int | offset | The offset respect the buffer. |
int | size | The size of the vertex buffer. |
IntPtr | data | The raw data source. |
Fields
LayoutDescription
The vertex layout.
Declaration
public readonly LayoutDescription LayoutDescription
Field Value
Type | Description |
---|---|
LayoutDescription |
VertexCount
The vertex count.
Declaration
public readonly int VertexCount
Field Value
Type | Description |
---|---|
int |