Skip to content

Commit a78b265

Browse files
committed
Clippy & fmt
1 parent 607b8cd commit a78b265

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

naga/src/back/spv/ray.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ impl Writer {
10301030
let bool_type_id = self.get_bool_type_id();
10311031
let bool_ptr_ty = self.get_pointer_type_id(bool_type_id, spirv::StorageClass::Function);
10321032

1033-
let (func_id, mut function, arg_ids) = self.write_function_signature(&[ray_query_type_id, u32_ptr_ty], bool_type_id);
1033+
let (func_id, mut function, arg_ids) =
1034+
self.write_function_signature(&[ray_query_type_id, u32_ptr_ty], bool_type_id);
10341035

10351036
let query_id = arg_ids[0];
10361037
let init_tracker_id = arg_ids[1];
@@ -1155,7 +1156,10 @@ impl Writer {
11551156

11561157
let bool_type_id = self.get_bool_type_id();
11571158

1158-
let (func_id, mut function, arg_ids) = self.write_function_signature(&[ray_query_type_id, u32_ptr_ty, f32_type_id], self.void_type);
1159+
let (func_id, mut function, arg_ids) = self.write_function_signature(
1160+
&[ray_query_type_id, u32_ptr_ty, f32_type_id],
1161+
self.void_type,
1162+
);
11591163

11601164
let query_id = arg_ids[0];
11611165
let init_tracker_id = arg_ids[1];
@@ -1294,7 +1298,8 @@ impl Writer {
12941298

12951299
let bool_type_id = self.get_bool_type_id();
12961300

1297-
let (func_id, mut function, arg_ids) = self.write_function_signature(&[ray_query_type_id, u32_ptr_ty], self.void_type);
1301+
let (func_id, mut function, arg_ids) =
1302+
self.write_function_signature(&[ray_query_type_id, u32_ptr_ty], self.void_type);
12981303

12991304
let query_id = arg_ids[0];
13001305
let init_tracker_id = arg_ids[1];
@@ -1455,7 +1460,10 @@ impl Writer {
14551460

14561461
let bool_type_id = self.get_bool_type_id();
14571462

1458-
let (func_id, mut function, arg_ids) = self.write_function_signature(&[ray_query_type_id, u32_ptr_ty], rq_get_vertex_positions_ty_id);
1463+
let (func_id, mut function, arg_ids) = self.write_function_signature(
1464+
&[ray_query_type_id, u32_ptr_ty],
1465+
rq_get_vertex_positions_ty_id,
1466+
);
14591467

14601468
let query_id = arg_ids[0];
14611469
let init_tracker_id = arg_ids[1];

wgpu-types/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7932,11 +7932,11 @@ pub struct ShaderRuntimeChecks {
79327932
/// on a ray query must obey these rules (functions using wgsl naming)
79337933
/// - `rayQueryInitialize` must have called before `rayQueryProceed`
79347934
/// - `rayQueryProceed` must have been called, returned true and have hit an AABB before
7935-
/// `rayQueryGenerateIntersection` is called
7935+
/// `rayQueryGenerateIntersection` is called
79367936
/// - `rayQueryProceed` must have been called, returned true and have hit a triangle before
7937-
/// `rayQueryConfirmIntersection` is called
7937+
/// `rayQueryConfirmIntersection` is called
79387938
/// - `rayQueryProceed` must have been called and have returned true before `rayQueryTerminate`,
7939-
/// `getCandidateHitVertexPositions` or `rayQueryGetCandidateIntersection` is called
7939+
/// `getCandidateHitVertexPositions` or `rayQueryGetCandidateIntersection` is called
79407940
/// - `rayQueryProceed` must have been called and have returned false before `rayQueryGetCommittedIntersection`
79417941
/// or `getCommittedHitVertexPositions` are called
79427942
///

0 commit comments

Comments
 (0)