Search Results for

    Show / Hide Table of Contents

    Class VertexBuffer

    Represents a vertex buffer.

    Inheritance
    object
    GraphicBuffer
    VertexBuffer
    Inherited Members
    GraphicBuffer.Buffer
    GraphicBuffer.Offset
    GraphicBuffer.Size
    GraphicBuffer.Data
    GraphicBuffer.Dispose()
    GraphicBuffer.Dispose(bool)
    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

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX