Remove dynamic state checks
This commit is contained in:
-13
@@ -315,14 +315,6 @@ impl App {
|
||||
let (physical_device, (graphics_queue_index, transfer_queue_index)) = instance
|
||||
.enumerate_physical_devices()
|
||||
.unwrap()
|
||||
.filter(|p| {
|
||||
if DYNAMIC_STATE {
|
||||
p.api_version() >= Version::V1_3
|
||||
|| p.supported_extensions().khr_dynamic_rendering
|
||||
} else {
|
||||
true
|
||||
}
|
||||
})
|
||||
.filter(|p| p.supported_extensions().contains(&device_extensions))
|
||||
.filter_map(|p| {
|
||||
p.queue_family_properties()
|
||||
@@ -372,10 +364,6 @@ impl App {
|
||||
physical_device.properties().device_type,
|
||||
);
|
||||
|
||||
if DYNAMIC_STATE && physical_device.api_version() < Version::V1_3 {
|
||||
device_extensions.khr_dynamic_rendering = true;
|
||||
}
|
||||
|
||||
let (device, mut queues) = Device::new(
|
||||
physical_device,
|
||||
DeviceCreateInfo {
|
||||
@@ -402,7 +390,6 @@ impl App {
|
||||
geometry_shader: true,
|
||||
primitive_fragment_shading_rate: SAMPLE_RATE_SHADING.is_some(),
|
||||
maintenance4: true,
|
||||
dynamic_rendering: DYNAMIC_STATE,
|
||||
..DeviceFeatures::empty()
|
||||
},
|
||||
..Default::default()
|
||||
|
||||
Reference in New Issue
Block a user