Class GPUBufferVulkan
GPU buffer for Vulkan backend.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUBufferVulkan.h
Syntax
public class GPUBufferVulkan : public GPUResourceVulkan
Constructors
GPUBufferVulkan(GPUDeviceVulkan* device, const StringView& name)
Initializes a new instance of the GPUBufferVulkan class.
Declaration
public GPUBufferVulkan(GPUDeviceVulkan* device, const StringView& name)
Parameters
GPUDeviceVulkan
device
The device. |
StringView
name
The name. |
Fields
Access
The current buffer access flags.
Declaration
public VkAccessFlags Access
Field Value
VkAccessFlags
|
Counter
The counter buffer attached to the Append/Counter buffers.
Declaration
public GPUBufferVulkan* Counter = nullptr
Field Value
GPUBufferVulkan
|
Methods
GetAllocation()
Gets the Vulkan memory allocation handle.
Declaration
public VmaAllocation GetAllocation() const
Returns
VmaAllocation
|
GetHandle()
Gets the Vulkan buffer handle.
Declaration
public VkBuffer GetHandle() const
Returns
VkBuffer
|
Map(GPUResourceMapMode mode)
Gets a CPU pointer to the resource by mapping its contents. Denies the GPU access to that resource.
Always call Unmap if the returned pointer is valid to release resources.
Declaration
public virtual void* Map(GPUResourceMapMode mode) override
Parameters
GPUResourceMapMode
mode
The map operation mode. |
Returns
void
The pointer of the mapped CPU buffer with resource data or null if failed. |
Overrides
OnInit()
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() override
Overrides
Unmap()
Invalidates the mapped pointer to a resource and restores the GPU's access to that resource.
Declaration
public virtual void Unmap() override
Overrides
View()
Gets the view for the whole buffer.
Declaration
public virtual GPUBufferView* View() const override
Returns
GPUBufferView
|