Class GPUBufferViewVulkan
The buffer view for Vulkan backend.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUBufferVulkan.h
Syntax
public class GPUBufferViewVulkan : public GPUBufferView, public DescriptorOwnerResourceVulkan
Constructors
GPUBufferViewVulkan()
Declaration
public GPUBufferViewVulkan()
Fields
Buffer
Declaration
public VkBuffer Buffer = VK_NULL_HANDLE
Field Value
VkBuffer
|
Device
Owner
Size
Declaration
public VkDeviceSize Size = 0
Field Value
VkDeviceSize
|
View
Declaration
public VkBufferView View = VK_NULL_HANDLE
Field Value
VkBufferView
|
Methods
DescriptorAsStorageBuffer(GPUContextVulkan* context, VkBuffer& buffer, VkDeviceSize& offset, VkDeviceSize& range)
Gets the storage buffer descriptor (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER).
Declaration
public virtual void DescriptorAsStorageBuffer(GPUContextVulkan* context, VkBuffer& buffer, VkDeviceSize& offset, VkDeviceSize& range) override
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkBuffer
buffer
The buffer. |
VkDeviceSize
offset
The range offset (in bytes). |
VkDeviceSize
range
The range size (in bytes). |
Overrides
DescriptorAsStorageTexelBuffer(GPUContextVulkan* context, VkBufferView& bufferView)
Gets the storage texel buffer descriptor (VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER).
Declaration
public virtual void DescriptorAsStorageTexelBuffer(GPUContextVulkan* context, VkBufferView& bufferView) override
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkBufferView
bufferView
The buffer view. |
Overrides
DescriptorAsUniformTexelBuffer(GPUContextVulkan* context, VkBufferView& bufferView)
Gets the uniform texel buffer descriptor (VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER).
Declaration
public virtual void DescriptorAsUniformTexelBuffer(GPUContextVulkan* context, VkBufferView& bufferView) override
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkBufferView
bufferView
The buffer view. |
Overrides
GetNativePtr()
Gets the native pointer to the underlying view. It's a platform-specific handle.
Declaration
public virtual void* GetNativePtr() const override
Returns
void
|
Overrides
HasSRV()
Declaration
public virtual bool HasSRV() const override
Returns
bool
|
Overrides
HasUAV()
Declaration
public virtual bool HasUAV() const override
Returns
bool
|
Overrides
Init(GPUDeviceVulkan* device, GPUBufferVulkan* owner, VkBuffer buffer, VkDeviceSize size, VkBufferUsageFlags usage, PixelFormat format)
Declaration
public void Init(GPUDeviceVulkan* device, GPUBufferVulkan* owner, VkBuffer buffer, VkDeviceSize size, VkBufferUsageFlags usage, PixelFormat format)
Parameters
GPUDeviceVulkan
device
|
GPUBufferVulkan
owner
|
VkBuffer
buffer
|
VkDeviceSize
size
|
VkBufferUsageFlags
usage
|
PixelFormat
format
|
Release()
Declaration
public void Release()