diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-17 01:58:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 01:58:13 +0200 |
commit | c81f2561111541e1b5b7f18b70ea69f93a33904d (patch) | |
tree | 9908d80fa8cb62643fa1f0a015a5b43b4f3bc229 /src/video_core/renderer_vulkan/vk_update_descriptor.cpp | |
parent | Merge pull request #3675 from degasus/linux_shared_libraries (diff) | |
parent | buffer_cache: Return handles instead of pointer to handles (diff) | |
download | yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar.gz yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar.bz2 yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar.lz yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar.xz yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.tar.zst yuzu-c81f2561111541e1b5b7f18b70ea69f93a33904d.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_update_descriptor.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_update_descriptor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp index 4bfec0077..681ecde98 100644 --- a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp +++ b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp @@ -35,12 +35,13 @@ void VKUpdateDescriptorQueue::Send(VkDescriptorUpdateTemplateKHR update_template payload.clear(); } + // TODO(Rodrigo): Rework to write the payload directly const auto payload_start = payload.data() + payload.size(); for (const auto& entry : entries) { if (const auto image = std::get_if<VkDescriptorImageInfo>(&entry)) { payload.push_back(*image); - } else if (const auto buffer = std::get_if<Buffer>(&entry)) { - payload.emplace_back(*buffer->buffer, buffer->offset, buffer->size); + } else if (const auto buffer = std::get_if<VkDescriptorBufferInfo>(&entry)) { + payload.push_back(*buffer); } else if (const auto texel = std::get_if<VkBufferView>(&entry)) { payload.push_back(*texel); } else { |