Skip to content

Commit

Permalink
remove duplicate workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Sep 20, 2024
1 parent e2168e6 commit 0fcc749
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions naga/src/back/spv/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1927,13 +1927,8 @@ impl Writer {
.iter()
.flat_map(|entry| entry.function.arguments.iter())
.any(|arg| has_view_index_check(ir_module, arg.binding.as_ref(), arg.ty));
let mut has_ray_query = false;

for (_, &crate::Type { ref inner, .. }) in ir_module.types.iter() {
if let &crate::TypeInner::AccelerationStructure | &crate::TypeInner::RayQuery = inner {
has_ray_query = true
}
}
let mut has_ray_query = ir_module.special_types.ray_desc.is_some()
| ir_module.special_types.ray_intersection.is_some();

for (_, &crate::Type { ref inner, .. }) in ir_module.types.iter() {
if let &crate::TypeInner::AccelerationStructure | &crate::TypeInner::RayQuery = inner {
Expand Down

0 comments on commit 0fcc749

Please sign in to comment.