Class GPUConstantBufferVulkan
Constant Buffer for Vulkan backend.
Inheritance
GPUConstantBufferVulkan
Inherited Members
GPUConstantBufferVulkan
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUShaderVulkan.h
Syntax
public class GPUConstantBufferVulkan : public GPUResourceVulkan, public DescriptorOwnerResourceVulkan
Constructors
GPUConstantBufferVulkan(GPUDeviceVulkan* device, uint32 size)
Initializes a new instance of the GPUConstantBufferVulkan class.
Declaration
public GPUConstantBufferVulkan(GPUDeviceVulkan* device, uint32 size) noexcept
Parameters
GPUDeviceVulkan
device
The graphics device. |
uint32
size
The buffer size (in bytes). |
Fields
Allocation
The last uploaded data inside the shared uniforms uploading ring buffer.
Declaration
public UniformBufferUploaderVulkan::Allocation Allocation
Field Value
UniformBufferUploaderVulkan::Allocation
|
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) 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). |
uint32
dynamicOffset
The dynamic offset (in bytes). |