vk_instance: Manually enable features
* We need these features so better force enable them and have the driver crash if they're unavailable.
This commit is contained in:
@ -515,11 +515,22 @@ bool Instance::CreateDevice() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
feature_chain.get<vk::PhysicalDevicePortabilitySubsetFeaturesKHR>(),
|
feature_chain.get<vk::PhysicalDevicePortabilitySubsetFeaturesKHR>(),
|
||||||
feature_chain.get<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>(),
|
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR{
|
||||||
feature_chain.get<vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT>(),
|
.timelineSemaphore = true,
|
||||||
feature_chain.get<vk::PhysicalDeviceCustomBorderColorFeaturesEXT>(),
|
},
|
||||||
feature_chain.get<vk::PhysicalDeviceIndexTypeUint8FeaturesEXT>(),
|
vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT{
|
||||||
feature_chain.get<vk::PhysicalDevicePipelineCreationCacheControlFeaturesEXT>(),
|
.extendedDynamicState = true,
|
||||||
|
},
|
||||||
|
vk::PhysicalDeviceCustomBorderColorFeaturesEXT{
|
||||||
|
.customBorderColors = true,
|
||||||
|
.customBorderColorWithoutFormat = true,
|
||||||
|
},
|
||||||
|
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT{
|
||||||
|
.indexTypeUint8 = true,
|
||||||
|
},
|
||||||
|
vk::PhysicalDevicePipelineCreationCacheControlFeaturesEXT{
|
||||||
|
.pipelineCreationCacheControl = true,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (portability_subset) {
|
if (portability_subset) {
|
||||||
|
Reference in New Issue
Block a user