Class VulkanDescriptorSet#
Defined in File VulkanDescriptorSet.h
Inheritance Relationships#
Base Type#
public TRAP::Graphics::DescriptorSet
(Class DescriptorSet)
Class Documentation#
-
class VulkanDescriptorSet : public TRAP::Graphics::DescriptorSet#
Public Functions
-
VulkanDescriptorSet(TRAP::Ref<VulkanDevice> device, std::vector<VkDescriptorSet> vkDescriptorSetHandles, TRAP::Ref<VulkanRootSignature> rootSignature, std::vector<std::vector<VulkanRenderer::DescriptorUpdateData>> updateData, u32 maxSets, u8 dynamicOffsetCount, u32 set)#
Constructor.
- Parameters:
device – Vulkan device.
vkDescriptorSetHandles – Vulkan descriptor set handles.
rootSignature – Root signature.
updateData – Update template data.
maxSets – Max number of sets for the descriptor set.
dynamicOffsetCount – Number of dynamic offsets.
set – Update frequency.
-
consteval VulkanDescriptorSet(const VulkanDescriptorSet&) noexcept = delete#
Copy constructor.
-
consteval VulkanDescriptorSet &operator=(const VulkanDescriptorSet&) noexcept = delete#
Copy assignment operator.
-
VulkanDescriptorSet(VulkanDescriptorSet&&) noexcept = default#
Move constructor.
-
VulkanDescriptorSet &operator=(VulkanDescriptorSet&&) noexcept = default#
Move assignment operator.
-
~VulkanDescriptorSet() override = default#
Destructor.
-
constexpr const std::vector<VkDescriptorSet> &GetVkDescriptorSets() const noexcept#
Retrieve the VkDescriptorSet handles.
- Returns:
VkDescriptorSet handles.
-
TRAP::Ref<VulkanRootSignature> GetRootSignature() const noexcept#
Retrieve the root signature.
- Returns:
Root signature.
-
constexpr RendererAPI::DescriptorUpdateFrequency GetUpdateFrequency() const noexcept#
Retrieve the update frequency used by the descriptor set.
- Returns:
Update frequency.
-
constexpr u8 GetDynamicOffsetCount() const noexcept#
Retrieve the amount of dynamic offsets used by the descriptor set.
- Returns:
Amount of dynamic offsets.
-
constexpr const std::vector<VulkanRenderer::SizeOffset> &GetDynamicSizeOffsets() const noexcept#
Retrieve the dynamic size offsets used by the descriptor set.
- Returns:
Dynamic size offsets.
-
constexpr u32 GetMaxSets() const noexcept#
Retrieve the max number of sets for the descriptor set.
- Returns:
Max number of sets.
-
constexpr u32 GetSet() const noexcept#
Retrieve the index of the set for the descriptor set.
- Returns:
Index of the set.
-
virtual void Update(u32 index, std::span<const RendererAPI::DescriptorData> params) override#
Update the descriptor set.
- Parameters:
index – Index of the set to update.
params – Data to update.
-
VulkanDescriptorSet(TRAP::Ref<VulkanDevice> device, std::vector<VkDescriptorSet> vkDescriptorSetHandles, TRAP::Ref<VulkanRootSignature> rootSignature, std::vector<std::vector<VulkanRenderer::DescriptorUpdateData>> updateData, u32 maxSets, u8 dynamicOffsetCount, u32 set)#