File tree 1 file changed +2
-11
lines changed
examples/runners/wgpu/src
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,6 @@ pub enum RustGPUShader {
90
90
Mouse ,
91
91
}
92
92
93
- impl RustGPUShader {
94
- pub fn help_string ( ) -> String {
95
- let variants: Vec < String > = Self :: value_variants ( )
96
- . iter ( )
97
- . map ( |v| v. to_possible_value ( ) . unwrap ( ) . get_name ( ) . to_owned ( ) )
98
- . collect ( ) ;
99
- format ! ( "Shader to run [{}]" , variants. join( ", " ) )
100
- }
101
- }
102
-
103
93
struct CompiledShaderModules {
104
94
named_spv_modules : Vec < ( Option < String > , wgpu:: ShaderModuleDescriptorSpirV < ' static > ) > ,
105
95
}
@@ -235,7 +225,8 @@ fn maybe_watch(
235
225
#[ derive( Parser , Clone ) ]
236
226
#[ command( ) ]
237
227
pub struct Options {
238
- #[ arg( short, long, default_value = "Sky" , help = RustGPUShader :: help_string( ) ) ]
228
+ /// which shader to run
229
+ #[ arg( short, long, default_value = "sky" ) ]
239
230
shader : RustGPUShader ,
240
231
241
232
#[ arg( long) ]
You can’t perform that action at this time.
0 commit comments