summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/wrapper.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-01 01:27:44 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-01 02:32:07 +0200
commitd85ca0ab33a90285b7120a8a85aa4de1680f4ae7 (patch)
tree881f1c9cb0d4ea25a06e515c695ff0e5bd9856a1 /src/video_core/renderer_vulkan/wrapper.cpp
parentrenderer_vulkan/wrapper: Add instance handle (diff)
downloadyuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar.gz
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar.bz2
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar.lz
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar.xz
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.tar.zst
yuzu-d85ca0ab33a90285b7120a8a85aa4de1680f4ae7.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/wrapper.cpp')
-rw-r--r--src/video_core/renderer_vulkan/wrapper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.cpp b/src/video_core/renderer_vulkan/wrapper.cpp
index 2e743e926..1ec7a542d 100644
--- a/src/video_core/renderer_vulkan/wrapper.cpp
+++ b/src/video_core/renderer_vulkan/wrapper.cpp
@@ -409,4 +409,15 @@ DebugCallback Instance::TryCreateDebugCallback(
return DebugCallback(messenger, handle, *dld);
}
+std::vector<VkCheckpointDataNV> Queue::GetCheckpointDataNV(const DeviceDispatch& dld) const {
+ if (!dld.vkGetQueueCheckpointDataNV) {
+ return {};
+ }
+ u32 num;
+ dld.vkGetQueueCheckpointDataNV(queue, &num, nullptr);
+ std::vector<VkCheckpointDataNV> checkpoints(num);
+ dld.vkGetQueueCheckpointDataNV(queue, &num, checkpoints.data());
+ return checkpoints;
+}
+
} // namespace Vulkan::vk