Search Results for

    Show / Hide Table of Contents

    Class VKBuffer

    Represents a Vulkan buffer object.

    Inheritance
    object
    GraphicsResource
    Buffer
    VKBuffer
    Inherited Members
    Buffer.Description
    Buffer.UpdateCounter
    GraphicsResource.Context
    GraphicsResource.Disposed
    GraphicsResource.Dispose()
    GraphicsResource.Dispose(bool)
    Namespace: Evergine.Vulkan
    Assembly: Evergine.Vulkan.dll
    Syntax
    public class VKBuffer : Buffer

    Constructors

    VKBuffer(VKGraphicsContext, nint, ref BufferDescription)

    Initializes a new instance of the VKBuffer class.

    Declaration
    public VKBuffer(VKGraphicsContext context, nint data, ref BufferDescription description)
    Parameters
    Type Name Description
    VKGraphicsContext context

    The graphics context.

    nint data

    The data pointer.

    BufferDescription description

    The buffer description.

    Fields

    BufferMemory

    The Vulkan buffer's memory.

    Declaration
    public VkDeviceMemory BufferMemory
    Field Value
    Type Description
    VkDeviceMemory

    NativeBuffer

    The Vulkan buffer object.

    Declaration
    public VkBuffer NativeBuffer
    Field Value
    Type Description
    VkBuffer

    Properties

    Name

    Gets or sets a string identifying this instance. It can be used in graphics debugging tools.

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    Buffer.Name

    NativePointer

    Gets the native pointer.

    Declaration
    public override nint NativePointer { get; }
    Property Value
    Type Description
    nint
    Overrides
    GraphicsResource.NativePointer

    Methods

    CopyTo(VkCommandBuffer, CommandQueueType, Buffer, uint, uint, uint)

    Copies this buffer to the destination buffer.

    Declaration
    public void CopyTo(VkCommandBuffer commandBuffer, CommandQueueType queueType, Buffer destination, uint sizeInBytes, uint sourceOffset, uint destinationOffset)
    Parameters
    Type Name Description
    VkCommandBuffer commandBuffer

    The command buffer.

    CommandQueueType queueType

    The command queue type of the command buffer.

    Buffer destination

    The destination buffer.

    uint sizeInBytes

    The size of data in bytes to copy.

    uint sourceOffset

    The source buffer offset in bytes.

    uint destinationOffset

    The destination buffer offset in bytes.

    Destroy()

    Destroy graphics native resources.

    Declaration
    protected override void Destroy()
    Overrides
    GraphicsResource.Destroy()

    SetData(VkCommandBuffer, nint, uint, uint)

    Fills the buffer from a pointer.

    Declaration
    public void SetData(VkCommandBuffer commandBuffer, nint source, uint sourceSizeInBytes, uint destinationOffsetInBytes = 0)
    Parameters
    Type Name Description
    VkCommandBuffer commandBuffer

    The command buffer.

    nint source

    The data pointer.

    uint sourceSizeInBytes

    The size in bytes.

    uint destinationOffsetInBytes

    The offset in bytes.

    Extension Methods

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