From dd45d054e71bc46ff39d7d9392799b2c9d8bf220 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 7 Feb 2022 16:42:27 +0100 Subject: [PATCH] Enable shaderDrawParameters --- app/src/main/cpp/skyline/gpu.cpp | 3 ++- app/src/main/cpp/skyline/gpu/trait_manager.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu.cpp b/app/src/main/cpp/skyline/gpu.cpp index 626245e3..ea704715 100644 --- a/app/src/main/cpp/skyline/gpu.cpp +++ b/app/src/main/cpp/skyline/gpu.cpp @@ -126,7 +126,7 @@ namespace skyline::gpu { const vk::raii::PhysicalDevice &physicalDevice, decltype(vk::DeviceQueueCreateInfo::queueCount) &vkQueueFamilyIndex, TraitManager &traits) { - auto deviceFeatures2{physicalDevice.getFeatures2()}; + auto deviceFeatures2{physicalDevice.getFeatures2()}; decltype(deviceFeatures2) enabledFeatures2{}; // We only want to enable features we required due to potential overhead from unused features #define FEAT_REQ(structName, feature) \ @@ -137,6 +137,7 @@ namespace skyline::gpu { FEAT_REQ(vk::PhysicalDeviceFeatures2, features.independentBlend); FEAT_REQ(vk::PhysicalDeviceFeatures2, features.shaderImageGatherExtended); + FEAT_REQ(vk::PhysicalDeviceShaderDrawParametersFeatures, shaderDrawParameters); #undef FEAT_REQ diff --git a/app/src/main/cpp/skyline/gpu/trait_manager.h b/app/src/main/cpp/skyline/gpu/trait_manager.h index ce952e68..4fd4b5f1 100644 --- a/app/src/main/cpp/skyline/gpu/trait_manager.h +++ b/app/src/main/cpp/skyline/gpu/trait_manager.h @@ -55,7 +55,7 @@ namespace skyline::gpu { using DeviceProperties2 = vk::StructureChain; - using DeviceFeatures2 = vk::StructureChain; + using DeviceFeatures2 = vk::StructureChain; TraitManager(const DeviceFeatures2 &deviceFeatures2, DeviceFeatures2 &enabledFeatures2, const std::vector &deviceExtensions, std::vector> &enabledExtensions, const DeviceProperties2 &deviceProperties2);