Class VKBuffer
Represents a Vulkan buffer object.
Implements
Inherited Members
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
NativePointer
Gets the native pointer.
Declaration
public override IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Overrides
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
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. |