From 1286e6e66abbfd6906f7d68719b401b5763abc91 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 24 Sep 2023 16:00:55 -0700 Subject: [PATCH] snapshots: Change messages for generating output. Change printlns in the backend functions to say "generating" instead of "writing" before calling the Naga backends. "Writing" suggests writing output to a file; "generating" seems more accurate for calling a backend. --- tests/snapshots.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/snapshots.rs b/tests/snapshots.rs index fe70a038c0..3083fac8fe 100644 --- a/tests/snapshots.rs +++ b/tests/snapshots.rs @@ -400,8 +400,6 @@ fn write_output_spv( use naga::back::spv; use rspirv::binary::Disassemble; - println!("writing SPIR-V"); - let mut flags = spv::WriterFlags::LABEL_VARYINGS; flags.set(spv::WriterFlags::DEBUG, params.debug); flags.set( @@ -456,7 +454,7 @@ fn write_output_spv_inner( ) { use naga::back::spv; use rspirv::binary::Disassemble; - println!("Writing SPIR-V for {:?}", input.file_name); + println!("Generating SPIR-V for {:?}", input.file_name); let spv = spv::write_vec(module, info, options, pipeline_options).unwrap(); let dis = rspirv::dr::load_words(spv) .expect("Produced invalid SPIR-V") @@ -482,7 +480,7 @@ fn write_output_msl( ) { use naga::back::msl; - println!("writing MSL"); + println!("generating MSL"); let mut options = options.clone(); options.bounds_check_policies = bounds_check_policies; @@ -512,7 +510,7 @@ fn write_output_glsl( ) { use naga::back::glsl; - println!("writing GLSL"); + println!("generating GLSL"); let pipeline_options = glsl::PipelineOptions { shader_stage: stage, @@ -546,7 +544,7 @@ fn write_output_hlsl( use naga::back::hlsl; use std::fmt::Write as _; - println!("writing HLSL"); + println!("generating HLSL"); let mut buffer = String::new(); let mut writer = hlsl::Writer::new(&mut buffer, options); @@ -590,7 +588,7 @@ fn write_output_wgsl( ) { use naga::back::wgsl; - println!("writing WGSL"); + println!("generating WGSL"); let mut flags = wgsl::WriterFlags::empty(); flags.set(wgsl::WriterFlags::EXPLICIT_TYPES, params.explicit_types);