@@ -15,6 +15,10 @@ pub mod bind_groups {
1515 pub j : wgpu:: BufferBinding < ' a > ,
1616 pub k : wgpu:: BufferBinding < ' a > ,
1717 pub l : wgpu:: BufferBinding < ' a > ,
18+ pub m : wgpu:: BufferBinding < ' a > ,
19+ pub n : wgpu:: BufferBinding < ' a > ,
20+ pub o : wgpu:: BufferBinding < ' a > ,
21+ pub p : wgpu:: BufferBinding < ' a > ,
1822 }
1923 const LAYOUT_DESCRIPTOR0 : wgpu:: BindGroupLayoutDescriptor = wgpu:: BindGroupLayoutDescriptor {
2024 label : Some ( "LayoutDescriptor0" ) ,
@@ -106,11 +110,7 @@ pub mod bind_groups {
106110 } ,
107111 wgpu:: BindGroupLayoutEntry {
108112 binding : 8 ,
109- visibility : wgpu:: ShaderStages :: VERTEX
110- . union ( wgpu:: ShaderStages :: FRAGMENT )
111- . union ( wgpu:: ShaderStages :: COMPUTE )
112- . union ( wgpu:: ShaderStages :: TASK )
113- . union ( wgpu:: ShaderStages :: MESH ) ,
113+ visibility : wgpu:: ShaderStages :: all ( ) ,
114114 ty : wgpu:: BindingType :: Buffer {
115115 ty : wgpu:: BufferBindingType :: Uniform ,
116116 has_dynamic_offset : false ,
@@ -148,6 +148,46 @@ pub mod bind_groups {
148148 } ,
149149 count : None ,
150150 } ,
151+ wgpu:: BindGroupLayoutEntry {
152+ binding : 12 ,
153+ visibility : wgpu:: ShaderStages :: NONE ,
154+ ty : wgpu:: BindingType :: Buffer {
155+ ty : wgpu:: BufferBindingType :: Uniform ,
156+ has_dynamic_offset : false ,
157+ min_binding_size : None ,
158+ } ,
159+ count : None ,
160+ } ,
161+ wgpu:: BindGroupLayoutEntry {
162+ binding : 13 ,
163+ visibility : wgpu:: ShaderStages :: NONE ,
164+ ty : wgpu:: BindingType :: Buffer {
165+ ty : wgpu:: BufferBindingType :: Uniform ,
166+ has_dynamic_offset : false ,
167+ min_binding_size : None ,
168+ } ,
169+ count : None ,
170+ } ,
171+ wgpu:: BindGroupLayoutEntry {
172+ binding : 14 ,
173+ visibility : wgpu:: ShaderStages :: NONE ,
174+ ty : wgpu:: BindingType :: Buffer {
175+ ty : wgpu:: BufferBindingType :: Uniform ,
176+ has_dynamic_offset : false ,
177+ min_binding_size : None ,
178+ } ,
179+ count : None ,
180+ } ,
181+ wgpu:: BindGroupLayoutEntry {
182+ binding : 15 ,
183+ visibility : wgpu:: ShaderStages :: NONE ,
184+ ty : wgpu:: BindingType :: Buffer {
185+ ty : wgpu:: BufferBindingType :: Uniform ,
186+ has_dynamic_offset : false ,
187+ min_binding_size : None ,
188+ } ,
189+ count : None ,
190+ } ,
151191 ] ,
152192 } ;
153193 impl BindGroup0 {
@@ -209,6 +249,22 @@ pub mod bind_groups {
209249 binding : 11 ,
210250 resource : wgpu:: BindingResource :: Buffer ( bindings. l ) ,
211251 } ,
252+ wgpu:: BindGroupEntry {
253+ binding : 12 ,
254+ resource : wgpu:: BindingResource :: Buffer ( bindings. m ) ,
255+ } ,
256+ wgpu:: BindGroupEntry {
257+ binding : 13 ,
258+ resource : wgpu:: BindingResource :: Buffer ( bindings. n ) ,
259+ } ,
260+ wgpu:: BindGroupEntry {
261+ binding : 14 ,
262+ resource : wgpu:: BindingResource :: Buffer ( bindings. o ) ,
263+ } ,
264+ wgpu:: BindGroupEntry {
265+ binding : 15 ,
266+ resource : wgpu:: BindingResource :: Buffer ( bindings. p ) ,
267+ } ,
212268 ] ,
213269 label : Some ( "BindGroup0" ) ,
214270 } ,
@@ -300,14 +356,24 @@ pub fn create_pipeline_layout(device: &wgpu::Device) -> wgpu::PipelineLayout {
300356 } ,
301357 )
302358}
359+ pub const ENTRY_AH_MAIN : & str = "ah_main" ;
360+ pub const ENTRY_CH_MAIN : & str = "ch_main" ;
303361pub const ENTRY_FS_MAIN : & str = "fs_main" ;
304362pub const ENTRY_MAIN : & str = "main" ;
305363pub const ENTRY_MAIN2 : & str = "main2" ;
364+ pub const ENTRY_MISS_MAIN : & str = "miss_main" ;
306365pub const ENTRY_MS_MAIN : & str = "ms_main" ;
366+ pub const ENTRY_RG_MAIN : & str = "rg_main" ;
307367pub const ENTRY_TS_MAIN : & str = "ts_main" ;
308368pub const ENTRY_VS_MAIN : & str = "vs_main" ;
309369#[ repr( C ) ]
310370#[ derive( Debug , Copy , Clone , PartialEq ) ]
371+ pub struct HitCounters {
372+ pub hit_num : u32 ,
373+ pub selected_hit : u32 ,
374+ }
375+ #[ repr( C ) ]
376+ #[ derive( Debug , Copy , Clone , PartialEq ) ]
311377pub struct MeshOutput { }
312378#[ derive( Debug ) ]
313379pub struct VertexEntry < const N : usize > {
0 commit comments