summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-device-queue.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-07-23 09:37:58 -0400
committerGitHub <noreply@github.com>2020-07-23 09:37:58 -0400
commitcf503553eb44f104072d8add4069f8352f7bad22 (patch)
tree0fc7cfadd2f5ff10b9c10d5f4861efec22834a7a /tools/gfx/vulkan/vk-device-queue.h
parent115920406ebd747e02e1e6a8e4595f7d88eef0d9 (diff)
Fix for vulkan tests failing (#1456)
* Clean up device when VKRenderer dtor is run. Added destroy methods to VulkanSwapChain & VulkanDeviceQueue * Small fixes around testing if DeviceQueue is valid. * Disable active-mask tests. Different drivers appear to change the results.
Diffstat (limited to 'tools/gfx/vulkan/vk-device-queue.h')
-rw-r--r--tools/gfx/vulkan/vk-device-queue.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-device-queue.h b/tools/gfx/vulkan/vk-device-queue.h
index d57483ec0..cd53b6b9d 100644
--- a/tools/gfx/vulkan/vk-device-queue.h
+++ b/tools/gfx/vulkan/vk-device-queue.h
@@ -54,6 +54,12 @@ struct VulkanDeviceQueue
/// Steps to next command buffer and opens. May block if command buffer is still in use
void flushStepB();
+ /// Destroy the device queue
+ void destroy();
+
+ /// True if the queue appears to be valid and has been initialized
+ bool isValid() const { return m_api != nullptr; }
+
/// Dtor
~VulkanDeviceQueue();