@@ -278,7 +278,7 @@ pub struct ValidatorOptions {
278278 ///
279279 /// This is enabled by default when targeting Vulkan 1.1 or later.
280280 /// Relaxed layout is more permissive than the default rules in Vulkan 1.0.
281- #[ cfg_attr( feature = "clap" , arg( long, default_value = "None " ) ) ]
281+ #[ cfg_attr( feature = "clap" , arg( long, default_value = "false " ) ) ]
282282 pub relax_block_layout : Option < bool > ,
283283 /// Records whether the validator should use standard block layout rules for
284284 /// uniform blocks.
@@ -353,8 +353,10 @@ impl Default for ShaderCrateFeatures {
353353#[ derive( Clone , Debug , serde:: Deserialize , serde:: Serialize ) ]
354354#[ cfg_attr( feature = "clap" , derive( clap:: Parser ) ) ]
355355pub struct SpirvBuilder {
356+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
356357 pub path_to_crate : Option < PathBuf > ,
357358 /// Whether to print build.rs cargo metadata (e.g. cargo:rustc-env=var=val). Defaults to [`MetadataPrintout::Full`].
359+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
358360 pub print_metadata : MetadataPrintout ,
359361 /// Build in release. Defaults to true.
360362 #[ cfg_attr( feature = "clap" , clap( long = "debug" , default_value = "true" , action = clap:: ArgAction :: SetFalse ) ) ]
@@ -390,21 +392,26 @@ pub struct SpirvBuilder {
390392 pub extensions : Vec < String > ,
391393 /// Set additional "codegen arg". Note: the `RUSTGPU_CODEGEN_ARGS` environment variable
392394 /// takes precedence over any set arguments using this function.
395+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
393396 pub extra_args : Vec < String > ,
394397 // Location of a known `rustc_codegen_spirv` dylib, only required without feature `rustc_codegen_spirv`.
398+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
395399 pub rustc_codegen_spirv_location : Option < PathBuf > ,
396400
397401 /// The path of the "target specification" file.
398402 ///
399403 /// For more info on "target specification" see
400404 /// [this RFC](https://rust-lang.github.io/rfcs/0131-target-specification.html).
405+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
401406 pub path_to_target_spec : Option < PathBuf > ,
402407 /// Set the target dir path within `./target` to use for building shaders. Defaults to `spirv-builder`, resulting
403408 /// in the path `./target/spirv-builder`.
409+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
404410 pub target_dir_path : Option < String > ,
405411
406412 // `rustc_codegen_spirv::linker` codegen args
407413 /// Change the shader `panic!` handling strategy (see [`ShaderPanicStrategy`]).
414+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
408415 pub shader_panic_strategy : ShaderPanicStrategy ,
409416
410417 /// spirv-val flags
0 commit comments