@@ -71,7 +71,7 @@ impl ShaderCodegen for PerPixelAdjust {
71
71
let entry_point_name = quote ! ( #entry_point_mod:: #entry_point_name_ident) ;
72
72
let uniform_struct_ident = format_ident ! ( "Uniform" ) ;
73
73
let uniform_struct = quote ! ( #entry_point_mod:: #uniform_struct_ident) ;
74
- let gpu_node_mod = format_ident ! ( "{}_gpu " , fn_name) ;
74
+ let shader_node_mod = format_ident ! ( "{}_shader_node " , fn_name) ;
75
75
76
76
let codegen = PerPixelAdjustCodegen {
77
77
parsed,
@@ -82,7 +82,7 @@ impl ShaderCodegen for PerPixelAdjust {
82
82
entry_point_name,
83
83
uniform_struct_ident,
84
84
uniform_struct,
85
- gpu_node_mod ,
85
+ shader_node_mod ,
86
86
} ;
87
87
88
88
Ok ( ShaderTokens {
@@ -101,7 +101,7 @@ pub struct PerPixelAdjustCodegen<'a> {
101
101
entry_point_name : TokenStream ,
102
102
uniform_struct_ident : Ident ,
103
103
uniform_struct : TokenStream ,
104
- gpu_node_mod : Ident ,
104
+ shader_node_mod : Ident ,
105
105
}
106
106
107
107
impl PerPixelAdjustCodegen < ' _ > {
@@ -286,9 +286,9 @@ impl PerPixelAdjustCodegen<'_> {
286
286
shader_node : Some ( ShaderNodeType :: ShaderNode ) ,
287
287
..self . parsed . attributes . clone ( )
288
288
} ,
289
- fn_name : self . gpu_node_mod . clone ( ) ,
290
- struct_name : format_ident ! ( "{}" , self . gpu_node_mod . to_string( ) . to_case( Case :: Pascal ) ) ,
291
- mod_name : self . gpu_node_mod . clone ( ) ,
289
+ fn_name : self . shader_node_mod . clone ( ) ,
290
+ struct_name : format_ident ! ( "{}" , self . shader_node_mod . to_string( ) . to_case( Case :: Pascal ) ) ,
291
+ mod_name : self . shader_node_mod . clone ( ) ,
292
292
fn_generics : vec ! [ parse_quote!( ' a: ' n) ] ,
293
293
where_clause : None ,
294
294
input : Input {
@@ -307,10 +307,10 @@ impl PerPixelAdjustCodegen<'_> {
307
307
let gpu_node_impl = crate :: codegen:: generate_node_code ( & parsed_node_fn) ?;
308
308
309
309
// wrap node in `mod #gpu_node_mod`
310
- let gpu_node_mod = & self . gpu_node_mod ;
310
+ let shader_node_mod = & self . shader_node_mod ;
311
311
Ok ( quote ! {
312
312
#[ cfg( feature = #SHADER_NODES_FEATURE_GATE ) ]
313
- mod #gpu_node_mod {
313
+ mod #shader_node_mod {
314
314
use super :: * ;
315
315
use wgpu_executor:: WgpuExecutor ;
316
316
0 commit comments