Skip to content

Commit 09947b6

Browse files
committed
Format
1 parent d27e835 commit 09947b6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

naga/src/back/spv/writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@ impl Writer {
35993599
.flat_map(|entry| entry.function.arguments.iter())
36003600
.any(|arg| has_view_index_check(ir_module, arg.binding.as_ref(), arg.ty));
36013601
let has_vertex_return = ir_module.special_types.ray_vertex_return.is_some();
3602-
3602+
36033603
let rt_uses = ir_module.uses_ray_tracing(ep_index);
36043604
let has_ray_query = rt_uses.queries;
36053605
let has_ray_tracing_pipeline = rt_uses.pipelines;

naga/src/proc/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ impl crate::Module {
956956

957957
uses.queries |= self.special_types.ray_intersection.is_some();
958958

959-
960959
for (_, &crate::Type { ref inner, .. }) in self.types.iter() {
961960
// Backends do not know whether these have vertex return - that is done by us
962961
match *inner {
@@ -973,7 +972,7 @@ impl crate::Module {
973972
continue;
974973
}
975974

976-
// if we have a ray tracing pipeline shader we are definitly using
975+
// if we have a ray tracing pipeline shader we are definitly using
977976
// pipelines, otherwise, if we have a ray tracing type, we might
978977
// be using it in the shader (which would require ray queries),
979978
// so we should use queries.

0 commit comments

Comments
 (0)