Skip to content

Commit

Permalink
Format & regen snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Feb 8, 2025
1 parent 78a1ef9 commit f2e88e5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
16 changes: 9 additions & 7 deletions naga/src/back/spv/ray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,17 @@ impl Writer {
.types
.get(&Type {
name: None,
inner: TypeInner::RayQuery { vertex_return: false },
inner: TypeInner::RayQuery {
vertex_return: false,
},
})
.or_else(|| {
ir_module
.types
.get(&Type {
name: None,
inner: TypeInner::RayQuery { vertex_return: true },
})
ir_module.types.get(&Type {
name: None,
inner: TypeInner::RayQuery {
vertex_return: true,
},
})
})
.expect("ray_query type should have been populated by the variable passed into this!");
let argument_type_id = self.get_type_id(LookupType::Local(LocalType::Pointer {
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/ir/must-use.compact.ron
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
special_types: (
ray_desc: None,
ray_intersection: None,
ray_vertex_return: None,
predeclared_types: {},
),
constants: [],
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/ir/must-use.ron
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
special_types: (
ray_desc: None,
ray_intersection: None,
ray_vertex_return: None,
predeclared_types: {},
),
constants: [],
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/ir/storage-textures.compact.ron
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
special_types: (
ray_desc: None,
ray_intersection: None,
ray_vertex_return: None,
predeclared_types: {},
),
constants: [],
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/ir/storage-textures.ron
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
special_types: (
ray_desc: None,
ray_intersection: None,
ray_vertex_return: None,
predeclared_types: {},
),
constants: [],
Expand Down

0 comments on commit f2e88e5

Please sign in to comment.