Class DescriptorOwnerResourceVulkan
Represents a GPU resource that contain descriptor resource for binding to the pipeline (shader resource, sampler, buffer, etc.).
Inheritance
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUDeviceVulkan.h
Syntax
public class DescriptorOwnerResourceVulkan
Constructors
~DescriptorOwnerResourceVulkan()
Finalizes an instance of the DescriptorOwnerResourceVulkan class.
Declaration
public virtual ~DescriptorOwnerResourceVulkan()
Methods
DescriptorAsDynamicUniformBuffer(GPUContextVulkan* context, VkBuffer& buffer, VkDeviceSize& offset, VkDeviceSize& range, uint32& dynamicOffset)
Gets the dynamic uniform buffer descriptor (VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC).
Declaration
public virtual void DescriptorAsDynamicUniformBuffer(GPUContextVulkan* context, VkBuffer& buffer, VkDeviceSize& offset, VkDeviceSize& range, uint32& dynamicOffset)
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). |
uint32
dynamicOffset
The dynamic offset (in bytes). |
DescriptorAsImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Gets the image descriptor.
Declaration
public virtual void DescriptorAsImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkImageView
imageView
The image view. |
VkImageLayout
layout
The image layout. |
DescriptorAsSampler(GPUContextVulkan* context, VkSampler& sampler)
Gets the sampler descriptor.
Declaration
public virtual void DescriptorAsSampler(GPUContextVulkan* context, VkSampler& sampler)
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkSampler
sampler
The sampler. |
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)
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). |
DescriptorAsStorageImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Gets the storage image descriptor (VK_DESCRIPTOR_TYPE_STORAGE_IMAGE).
Declaration
public virtual void DescriptorAsStorageImage(GPUContextVulkan* context, VkImageView& imageView, VkImageLayout& layout)
Parameters
GPUContextVulkan
context
The GPU context. Can be used to add memory barriers to the pipeline before binding the descriptor to the pipeline. |
VkImageView
imageView
The image view. |
VkImageLayout
layout
The image layout. |
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)
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. |
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)
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. |
HasSRV()
Declaration
public virtual bool HasSRV() const
Returns
bool
|
HasUAV()
Declaration
public virtual bool HasUAV() const
Returns
bool
|