11/*
2- * Copyright 2019-2023 Diligent Graphics LLC
2+ * Copyright 2019-2025 Diligent Graphics LLC
33 * Copyright 2015-2019 Egor Yusov
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -99,13 +99,19 @@ DILIGENT_BEGIN_INTERFACE(IEngineFactoryVk, IEngineFactory)
9999 const NativeWindow REF Window ,
100100 ISwapChain * * ppSwapChain ) PURE ;
101101
102- /// Enable device simulation layer (if available).
102+ /// Enables device simulation layer (if available).
103103
104104 /// Vulkan instance will be created with the device simulation layer.
105105 /// Use VK_DEVSIM_FILENAME environment variable to define the path to the .json file.
106106 ///
107107 /// \remarks Use this function before calling EnumerateAdapters() and CreateDeviceAndContextsVk().
108108 VIRTUAL void METHOD (EnableDeviceSimulation )(THIS ) PURE ;
109+
110+
111+ /// Returns the supported Vulkan version. If Vulkan is not supported, returns 0.
112+
113+ /// This function can be used to check whether Vulkan is supported on the platform.
114+ VIRTUAL Version METHOD (GetVulkanVersion )(THIS ) CONST PURE ;
109115};
110116DILIGENT_END_INTERFACE
111117
@@ -118,6 +124,7 @@ DILIGENT_END_INTERFACE
118124# define IEngineFactoryVk_CreateDeviceAndContextsVk (This , ...) CALL_IFACE_METHOD(EngineFactoryVk, CreateDeviceAndContextsVk, This, __VA_ARGS__)
119125# define IEngineFactoryVk_CreateSwapChainVk (This , ...) CALL_IFACE_METHOD(EngineFactoryVk, CreateSwapChainVk, This, __VA_ARGS__)
120126# define IEngineFactoryVk_EnableDeviceSimulation (This ) CALL_IFACE_METHOD(EngineFactoryVk, EnableDeviceSimulation, This)
127+ # define IEngineFactoryVk_GetVulkanVersion (This ) CALL_IFACE_METHOD(EngineFactoryVk, GetVulkanVersion, This)
121128
122129// clang-format on
123130
0 commit comments