Skip to content

Commit

Permalink
removed redundant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeP0WERS committed Mar 29, 2024
1 parent d6b14e1 commit 29a6c3e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions vulkano/src/pipeline/graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2584,10 +2584,7 @@ impl GraphicsPipelineCreateInfo {
.unwrap_or(false)
{
if let (None, Some(input_assembly_state)) = (geometry_stage, input_assembly_state) {
if !matches!(
conservative_rasterization_state.mode,
ConservativeRasterizationMode::Disabled
) && matches!(
if matches!(
input_assembly_state.topology,
PrimitiveTopology::PointList
| PrimitiveTopology::LineList
Expand Down Expand Up @@ -2631,11 +2628,7 @@ impl GraphicsPipelineCreateInfo {
)
});

if !matches!(
conservative_rasterization_state.mode,
ConservativeRasterizationMode::Disabled
) && invalid_output
{
if invalid_output {
return Err(Box::new(ValidationError {
problem: "the output topology of the geometry shader is not compatible with the \
conservative rasterization mode"
Expand Down Expand Up @@ -2668,11 +2661,7 @@ impl GraphicsPipelineCreateInfo {
}
}

if !matches!(
conservative_rasterization_state.mode,
ConservativeRasterizationMode::Disabled
) && invalid_output
{
if invalid_output {
return Err(Box::new(ValidationError {
problem: "the output topology of the mesh shader is not compatible with the \
conservative rasterization mode"
Expand Down

0 comments on commit 29a6c3e

Please sign in to comment.