From f2e88e5dc3b08ac2d2ab263054c1005e5a7bb690 Mon Sep 17 00:00:00 2001 From: Vecvec Date: Sat, 8 Feb 2025 14:42:08 +1300 Subject: [PATCH] Format & regen snapshots. --- naga/src/back/spv/ray.rs | 16 +++++++++------- naga/tests/out/ir/must-use.compact.ron | 1 + naga/tests/out/ir/must-use.ron | 1 + naga/tests/out/ir/storage-textures.compact.ron | 1 + naga/tests/out/ir/storage-textures.ron | 1 + 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/naga/src/back/spv/ray.rs b/naga/src/back/spv/ray.rs index 5fb4acd8a2..70a26a5c8c 100644 --- a/naga/src/back/spv/ray.rs +++ b/naga/src/back/spv/ray.rs @@ -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 { diff --git a/naga/tests/out/ir/must-use.compact.ron b/naga/tests/out/ir/must-use.compact.ron index 3d51cb0c95..9024bd7554 100644 --- a/naga/tests/out/ir/must-use.compact.ron +++ b/naga/tests/out/ir/must-use.compact.ron @@ -11,6 +11,7 @@ special_types: ( ray_desc: None, ray_intersection: None, + ray_vertex_return: None, predeclared_types: {}, ), constants: [], diff --git a/naga/tests/out/ir/must-use.ron b/naga/tests/out/ir/must-use.ron index 3d51cb0c95..9024bd7554 100644 --- a/naga/tests/out/ir/must-use.ron +++ b/naga/tests/out/ir/must-use.ron @@ -11,6 +11,7 @@ special_types: ( ray_desc: None, ray_intersection: None, + ray_vertex_return: None, predeclared_types: {}, ), constants: [], diff --git a/naga/tests/out/ir/storage-textures.compact.ron b/naga/tests/out/ir/storage-textures.compact.ron index 3f2f06439c..ad04c885f4 100644 --- a/naga/tests/out/ir/storage-textures.compact.ron +++ b/naga/tests/out/ir/storage-textures.compact.ron @@ -70,6 +70,7 @@ special_types: ( ray_desc: None, ray_intersection: None, + ray_vertex_return: None, predeclared_types: {}, ), constants: [], diff --git a/naga/tests/out/ir/storage-textures.ron b/naga/tests/out/ir/storage-textures.ron index 3f2f06439c..ad04c885f4 100644 --- a/naga/tests/out/ir/storage-textures.ron +++ b/naga/tests/out/ir/storage-textures.ron @@ -70,6 +70,7 @@ special_types: ( ray_desc: None, ray_intersection: None, + ray_vertex_return: None, predeclared_types: {}, ), constants: [],