Disable sample rate shading

This commit is contained in:
2025-06-23 22:38:36 +01:00
parent 8ed07e4ad7
commit 094203bcfb
+6 -6
View File
@@ -13,7 +13,7 @@ use std::{
const DYNAMIC_STATE: bool = true; const DYNAMIC_STATE: bool = true;
const MSAA_ENABLE: bool = false; const MSAA_ENABLE: bool = false;
const MSAA_SAMPLES: u32 = 4; const MSAA_SAMPLES: u32 = 4;
const SAMPLE_RATE_SHADING: f32 = 1.0; const SAMPLE_RATE_SHADING: Option<f32> = None; //1.0;
const MSAA_SAMPLES_ACTUAL: u32 = if MSAA_ENABLE { MSAA_SAMPLES } else { 1 }; const MSAA_SAMPLES_ACTUAL: u32 = if MSAA_ENABLE { MSAA_SAMPLES } else { 1 };
@@ -390,16 +390,16 @@ impl App {
}, },
], ],
enabled_features: DeviceFeatures { enabled_features: DeviceFeatures {
mesh_shader: true, mesh_shader: false,
task_shader: true, task_shader: false,
sample_rate_shading: true, sample_rate_shading: SAMPLE_RATE_SHADING.is_some(),
//shader_float16: true, //shader_float16: true,
shader_int16: true, shader_int16: true,
shader_int8: true, shader_int8: true,
storage_buffer8_bit_access: true, storage_buffer8_bit_access: true,
storage_buffer16_bit_access: true, storage_buffer16_bit_access: true,
geometry_shader: true, geometry_shader: true,
primitive_fragment_shading_rate: true, primitive_fragment_shading_rate: SAMPLE_RATE_SHADING.is_some(),
maintenance4: true, maintenance4: true,
dynamic_rendering: DYNAMIC_STATE, dynamic_rendering: DYNAMIC_STATE,
..DeviceFeatures::empty() ..DeviceFeatures::empty()
@@ -1410,7 +1410,7 @@ fn pipeline_recompile(
}), }),
multisample_state: Some(MultisampleState { multisample_state: Some(MultisampleState {
rasterization_samples: subpass.num_samples().unwrap(), rasterization_samples: subpass.num_samples().unwrap(),
sample_shading: Some(SAMPLE_RATE_SHADING), sample_shading: SAMPLE_RATE_SHADING,
..Default::default() ..Default::default()
}), }),
color_blend_state: Some(ColorBlendState::with_attachment_states( color_blend_state: Some(ColorBlendState::with_attachment_states(