Search Results for

    Show / Hide Table of Contents

    Class VKBuffer

    Represents a Vulkan buffer object.

    Inheritance
    object
    GraphicsResource
    Buffer
    VKBuffer
    Implements
    IDisposable
    Inherited Members
    Buffer.Description
    Buffer.UpdateCounter
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.Disposed
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Vulkan
    Assembly: Evergine.Vulkan.dll
    Syntax
    public class VKBuffer : Buffer, IDisposable

    Constructors

    VKBuffer(VKGraphicsContext, IntPtr, ref BufferDescription)

    Initializes a new instance of the VKBuffer class.

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

    The graphics context.

    IntPtr data

    The data pointer.

    BufferDescription description

    A buffer description.

    Fields

    BufferMemory

    The Vulkan buffer 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. Can be used in graphics debuggers tools.

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

    NativePointer

    Gets the native pointer.

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

    Methods

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

    Copy this buffer in 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 commandbuffer.

    CommandQueueType queueType

    The commandqueue type of the commandBuffer.

    Buffer destination

    The destination buffer.

    uint sizeInBytes

    The data size in bytes to copy.

    uint sourceOffset

    The source buffer offset in bytes.

    uint destinationOffset

    The destination buffer offset in bytes.

    Dispose()

    Dispose this instance.

    Declaration
    public override void Dispose()
    Overrides
    GraphicsResource.Dispose()

    SetData(VkCommandBuffer, IntPtr, uint, uint)

    Fill the buffer from a pointer.

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

    The commandbuffer.

    IntPtr source

    The data pointer.

    uint sourceSizeInBytes

    The size in bytes.

    uint destinationOffsetInBytes

    The offset in bytes.

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX