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
Destroy()
Destroy graphics native resources.
Declaration
protected override void Destroy()
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. |