diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-27 02:09:54 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-27 02:09:54 +0000 |
| commit | 93711538bfc5438cb99bd8ad91880df69ab62a22 (patch) | |
| tree | 66b412424faa6ae2322e16da8c53b968d9bce4b8 /Graphics/GraphicsEngineVulkan | |
| parent | Fixed typo in issue template (diff) | |
| download | DiligentCore-93711538bfc5438cb99bd8ad91880df69ab62a22.tar.gz DiligentCore-93711538bfc5438cb99bd8ad91880df69ab62a22.zip | |
Vk backend: added minor comments
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/PipelineLayout.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
