File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
engine/render/renderer/platform/vulkan Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
#include < utils/collections/StackArray.h>
13
13
#include < volk/volk.h>
14
14
15
+ #ifdef __APPLE__
16
+ #define EXTENSIONS_COUNT 3
17
+ #define OS_EXTENSIONS , " VK_KHR_portability_subset"
18
+ #else
19
+ #define EXTENSIONS_COUNT 2
20
+ #define OS_EXTENSIONS
21
+ #endif
22
+
15
23
namespace Siege ::Vulkan
16
24
{
17
25
class Config
18
26
{
19
27
public:
20
28
21
29
static constexpr uint32_t VALIDATION_LAYERS_COUNT = 1 ;
22
- static constexpr uint32_t EXTENSIONS_COUNT = 2 ;
23
30
24
31
/* *
25
32
* An array storing all required validation layers (if enabled).
@@ -33,7 +40,7 @@ class Config
33
40
**/
34
41
static constexpr SArray<const char *, EXTENSIONS_COUNT> deviceExtensions = {
35
42
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
36
- VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME};
43
+ VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME OS_EXTENSIONS };
37
44
};
38
45
} // namespace Siege::Vulkan
39
46
You can’t perform that action at this time.
0 commit comments