@@ -210,7 +210,6 @@ pub fn setup_raytraced_shadows_tlas(
210
210
if t. tlas . is_none ( ) {
211
211
let mut instances = Vec :: new ( ) ;
212
212
for ( index, ( position, scale, rotation, blas) ) in & mut entities_query. iter ( ) . enumerate ( ) {
213
- println ! ( "meow {}" , index) ;
214
213
let translate = Mat34f :: from_translation ( position. 0 ) ;
215
214
let rotate = Mat34f :: from ( rotation. 0 ) ;
216
215
let scale = Mat34f :: from_scale ( scale. 0 ) ;
@@ -267,21 +266,25 @@ pub fn render_meshes_raytraced(
267
266
if let Ok ( cam) = cam {
268
267
for t in & tlas_query {
269
268
if let Some ( tlas) = & t. tlas {
270
- println ! ( "we have tlas, camera, output tex and size" ) ;
269
+ // set pipeline
270
+ let pipeline = pmfx. get_raytracing_pipeline ( & pass. pass_pipline ) ?;
271
+ pass. cmd_buf . set_raytracing_pipeline ( & pipeline. pipeline ) ;
272
+
273
+ // push camera constants
274
+
275
+ // dispatch
276
+ /*
277
+ cmd.dispatch_rays(&raytracing_pipeline.sbt, gfx::Size3 {
278
+ x: window_rect.width as u32,
279
+ y: window_rect.height as u32,
280
+ z: 1
281
+ });
282
+ */
271
283
}
272
284
}
273
285
}
274
286
275
287
/*
276
- cmd.dispatch_rays(&raytracing_pipeline.sbt, gfx::Size3 {
277
- x: window_rect.width as u32,
278
- y: window_rect.height as u32,
279
- z: 1
280
- });
281
- */
282
-
283
- /*
284
- let pipeline = pmfx.get_compute_pipeline(&pass.pass_pipline)?;
285
288
pass.cmd_buf.set_compute_pipeline(&pipeline);
286
289
287
290
let using_slot = pipeline.get_pipeline_slot(0, 1, gfx::DescriptorType::PushConstants);
0 commit comments