From a3966b442b3da1fd3ae3094f9abc7fa515b53fa6 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 10 Feb 2019 02:56:27 +0000 Subject: [PATCH] [dxvk] Add adapterCount function to DXVKInstance. Will be needed in the Direct3D9 interface as you can query the number of adapters. --- src/dxvk/dxvk_instance.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dxvk/dxvk_instance.h b/src/dxvk/dxvk_instance.h index 154f37df5..532882315 100644 --- a/src/dxvk/dxvk_instance.h +++ b/src/dxvk/dxvk_instance.h @@ -38,6 +38,15 @@ namespace dxvk { VkInstance handle() { return m_vki->instance(); } + + /** + * \brief Number of adapters + * + * \returns The number of adapters + */ + size_t adapterCount() { + return m_adapters.size(); + } /** * \brief Retrieves an adapter