Disable sample rate shading
This commit is contained in:
+6
-6
@@ -13,7 +13,7 @@ use std::{
|
||||
const DYNAMIC_STATE: bool = true;
|
||||
const MSAA_ENABLE: bool = false;
|
||||
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 };
|
||||
|
||||
@@ -390,16 +390,16 @@ impl App {
|
||||
},
|
||||
],
|
||||
enabled_features: DeviceFeatures {
|
||||
mesh_shader: true,
|
||||
task_shader: true,
|
||||
sample_rate_shading: true,
|
||||
mesh_shader: false,
|
||||
task_shader: false,
|
||||
sample_rate_shading: SAMPLE_RATE_SHADING.is_some(),
|
||||
//shader_float16: true,
|
||||
shader_int16: true,
|
||||
shader_int8: true,
|
||||
storage_buffer8_bit_access: true,
|
||||
storage_buffer16_bit_access: true,
|
||||
geometry_shader: true,
|
||||
primitive_fragment_shading_rate: true,
|
||||
primitive_fragment_shading_rate: SAMPLE_RATE_SHADING.is_some(),
|
||||
maintenance4: true,
|
||||
dynamic_rendering: DYNAMIC_STATE,
|
||||
..DeviceFeatures::empty()
|
||||
@@ -1410,7 +1410,7 @@ fn pipeline_recompile(
|
||||
}),
|
||||
multisample_state: Some(MultisampleState {
|
||||
rasterization_samples: subpass.num_samples().unwrap(),
|
||||
sample_shading: Some(SAMPLE_RATE_SHADING),
|
||||
sample_shading: SAMPLE_RATE_SHADING,
|
||||
..Default::default()
|
||||
}),
|
||||
color_blend_state: Some(ColorBlendState::with_attachment_states(
|
||||
|
||||
Reference in New Issue
Block a user