Class VKBuffer
Represents a Vulkan buffer object.
Inherited Members
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
NativePointer
Gets the native pointer.
Declaration
public override nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Overrides
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. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
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. |