Skip to content

Commit d643a65

Browse files
committed
compile_codegen: derive Debug for SpirvBuilder
1 parent de2cef8 commit d643a65

File tree

1 file changed

+4
-4
lines changed
  • crates/spirv-builder/src

1 file changed

+4
-4
lines changed

crates/spirv-builder/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub enum ShaderPanicStrategy {
236236

237237
/// Options for specifying the behavior of the validator
238238
/// Copied from `spirv-tools/src/val.rs` struct `ValidatorOptions`, with some fields disabled.
239-
#[derive(Default, Clone, serde::Deserialize, serde::Serialize)]
239+
#[derive(Default, Debug, Clone, serde::Deserialize, serde::Serialize)]
240240
#[cfg_attr(feature = "clap", derive(clap::Parser))]
241241
pub struct ValidatorOptions {
242242
/// Record whether or not the validator should relax the rules on types for
@@ -312,7 +312,7 @@ pub struct ValidatorOptions {
312312

313313
/// Options for specifying the behavior of the optimizer
314314
/// Copied from `spirv-tools/src/opt.rs` struct `Options`, with some fields disabled.
315-
#[derive(Default, Clone, serde::Deserialize, serde::Serialize)]
315+
#[derive(Default, Debug, Clone, serde::Deserialize, serde::Serialize)]
316316
#[cfg_attr(feature = "clap", derive(clap::Parser))]
317317
pub struct OptimizerOptions {
318318
// /// Records the validator options that should be passed to the validator,
@@ -329,7 +329,7 @@ pub struct OptimizerOptions {
329329
}
330330

331331
/// Cargo features specification for building the shader crate.
332-
#[derive(Clone, serde::Deserialize, serde::Serialize)]
332+
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
333333
#[cfg_attr(feature = "clap", derive(clap::Parser))]
334334
pub struct ShaderCrateFeatures {
335335
/// Set --default-features for the target shader crate.
@@ -350,7 +350,7 @@ impl Default for ShaderCrateFeatures {
350350
}
351351

352352
#[non_exhaustive]
353-
#[derive(Clone, serde::Deserialize, serde::Serialize)]
353+
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
354354
#[cfg_attr(feature = "clap", derive(clap::Parser))]
355355
pub struct SpirvBuilder {
356356
pub path_to_crate: Option<PathBuf>,

0 commit comments

Comments
 (0)