From 93711538bfc5438cb99bd8ad91880df69ab62a22 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 26 Oct 2019 19:09:54 -0700 Subject: Vk backend: added minor comments --- Graphics/GraphicsEngineVulkan/include/PipelineLayout.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/PipelineLayout.h b/Graphics/GraphicsEngineVulkan/include/PipelineLayout.h index 1b059ce9..bbaa1960 100644 --- a/Graphics/GraphicsEngineVulkan/include/PipelineLayout.h +++ b/Graphics/GraphicsEngineVulkan/include/PipelineLayout.h @@ -238,6 +238,9 @@ __forceinline void PipelineLayout::BindDescriptorSetsWithDynamicOffsets(VulkanUt auto NumOffsetsWritten = BindInfo.pResourceCache->GetDynamicBufferOffsets(CtxId, pCtxVkImpl, BindInfo.DynamicOffsets); VERIFY_EXPR(NumOffsetsWritten == BindInfo.DynamicOffsetCount); (void)NumOffsetsWritten; + // Note that there is one global dynamic buffer from which all dynamic resources are suballocated in Vulkan back-end, + // and this buffer is not resizable, so the buffer handle can never change. + // vkCmdBindDescriptorSets causes the sets numbered [firstSet .. firstSet+descriptorSetCount-1] to use the // bindings stored in pDescriptorSets[0 .. descriptorSetCount-1] for subsequent rendering commands // (either compute or graphics, according to the pipelineBindPoint). Any bindings that were previously -- cgit v1.2.3