Skip to content
Snippets Groups Projects
Commit c8cd694d authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92] disable always enabled features due to RTX feature conflicts

parent d89cf80a
No related branches found
No related tags found
1 merge request!75Resolve "RTX-Module"
Pipeline #27031 passed
......@@ -260,20 +260,21 @@ namespace vkcv
vk::PhysicalDevice physicalDevice = pickPhysicalDevice(instance);
FeatureManager featureManager (physicalDevice);
if (featureManager.useExtension(VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME, false)) {
featureManager.useFeatures<vk::PhysicalDeviceShaderFloat16Int8Features>(
[](vk::PhysicalDeviceShaderFloat16Int8Features& features) {
features.setShaderFloat16(true);
}, false);
}
if (featureManager.useExtension(VK_KHR_16BIT_STORAGE_EXTENSION_NAME, false)) {
featureManager.useFeatures<vk::PhysicalDevice16BitStorageFeatures>(
[](vk::PhysicalDevice16BitStorageFeatures& features) {
features.setStorageBuffer16BitAccess(true);
}, false);
}
// TODO, FIXME: nach Tobi duerfen wir das hier auskommentieren. Es wird ein Fix benoetigt!
// if (featureManager.useExtension(VK_KHR_SHADER_FLOAT16_INT8_EXTENSION_NAME, false)) {
// featureManager.useFeatures<vk::PhysicalDeviceShaderFloat16Int8Features>(
// [](vk::PhysicalDeviceShaderFloat16Int8Features& features) {
// features.setShaderFloat16(true);
// }, false);
// }
//
// if (featureManager.useExtension(VK_KHR_16BIT_STORAGE_EXTENSION_NAME, false)) {
// featureManager.useFeatures<vk::PhysicalDevice16BitStorageFeatures>(
// [](vk::PhysicalDevice16BitStorageFeatures& features) {
// features.setStorageBuffer16BitAccess(true);
// }, false);
// }
featureManager.useFeatures([](vk::PhysicalDeviceFeatures& features) {
features.setFragmentStoresAndAtomics(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment