Skip to content

Commit 6353853

Browse files
author
GBDixonAlex
committed
- wip
1 parent 9a781f1 commit 6353853

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

plugins/ecs_examples/src/raytraced_shadows.rs

+14-11
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ pub fn setup_raytraced_shadows_tlas(
210210
if t.tlas.is_none() {
211211
let mut instances = Vec::new();
212212
for (index, (position, scale, rotation, blas)) in &mut entities_query.iter().enumerate() {
213-
println!("meow {}", index);
214213
let translate = Mat34f::from_translation(position.0);
215214
let rotate = Mat34f::from(rotation.0);
216215
let scale = Mat34f::from_scale(scale.0);
@@ -267,21 +266,25 @@ pub fn render_meshes_raytraced(
267266
if let Ok(cam) = cam {
268267
for t in &tlas_query {
269268
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+
*/
271283
}
272284
}
273285
}
274286

275287
/*
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)?;
285288
pass.cmd_buf.set_compute_pipeline(&pipeline);
286289
287290
let using_slot = pipeline.get_pipeline_slot(0, 1, gfx::DescriptorType::PushConstants);

0 commit comments

Comments
 (0)