@@ -278,7 +278,7 @@ pub struct ValidatorOptions {
278
278
///
279
279
/// This is enabled by default when targeting Vulkan 1.1 or later.
280
280
/// 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 " ) ) ]
282
282
pub relax_block_layout : Option < bool > ,
283
283
/// Records whether the validator should use standard block layout rules for
284
284
/// uniform blocks.
@@ -353,8 +353,10 @@ impl Default for ShaderCrateFeatures {
353
353
#[ derive( Clone , Debug , serde:: Deserialize , serde:: Serialize ) ]
354
354
#[ cfg_attr( feature = "clap" , derive( clap:: Parser ) ) ]
355
355
pub struct SpirvBuilder {
356
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
356
357
pub path_to_crate : Option < PathBuf > ,
357
358
/// 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) ) ]
358
360
pub print_metadata : MetadataPrintout ,
359
361
/// Build in release. Defaults to true.
360
362
#[ cfg_attr( feature = "clap" , clap( long = "debug" , default_value = "true" , action = clap:: ArgAction :: SetFalse ) ) ]
@@ -390,21 +392,26 @@ pub struct SpirvBuilder {
390
392
pub extensions : Vec < String > ,
391
393
/// Set additional "codegen arg". Note: the `RUSTGPU_CODEGEN_ARGS` environment variable
392
394
/// takes precedence over any set arguments using this function.
395
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
393
396
pub extra_args : Vec < String > ,
394
397
// Location of a known `rustc_codegen_spirv` dylib, only required without feature `rustc_codegen_spirv`.
398
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
395
399
pub rustc_codegen_spirv_location : Option < PathBuf > ,
396
400
397
401
/// The path of the "target specification" file.
398
402
///
399
403
/// For more info on "target specification" see
400
404
/// [this RFC](https://rust-lang.github.io/rfcs/0131-target-specification.html).
405
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
401
406
pub path_to_target_spec : Option < PathBuf > ,
402
407
/// Set the target dir path within `./target` to use for building shaders. Defaults to `spirv-builder`, resulting
403
408
/// in the path `./target/spirv-builder`.
409
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
404
410
pub target_dir_path : Option < String > ,
405
411
406
412
// `rustc_codegen_spirv::linker` codegen args
407
413
/// Change the shader `panic!` handling strategy (see [`ShaderPanicStrategy`]).
414
+ #[ cfg_attr( feature = "clap" , clap( skip) ) ]
408
415
pub shader_panic_strategy : ShaderPanicStrategy ,
409
416
410
417
/// spirv-val flags
0 commit comments