Skip to content

Commit

Permalink
Fix problems
Browse files Browse the repository at this point in the history
  • Loading branch information
atlv24 committed Apr 14, 2024
1 parent abdbb40 commit 67710d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/src/ray_cube_compute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ pub fn main() {
#[wgpu_test::gpu_test]
static TEST: crate::framework::ExampleTestParams = crate::framework::ExampleTestParams {
name: "ray_cube_compute",
image_path: "/examples/ray_cube_compute/screenshot.png",
image_path: "/examples/src/ray_cube_compute/screenshot.png",
width: 1024,
height: 768,
optional_features: wgpu::Features::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/src/ray_cube_fragment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ pub fn main() {
#[wgpu_test::gpu_test]
static TEST: crate::framework::ExampleTestParams = crate::framework::ExampleTestParams {
name: "ray_cube_fragment",
image_path: "/examples/ray_cube_fragment/screenshot.png",
image_path: "/examples/src/ray_cube_fragment/screenshot.png",
width: 1024,
height: 768,
optional_features: wgpu::Features::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/src/ray_scene/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ pub fn main() {
#[wgpu_test::gpu_test]
static TEST: crate::framework::ExampleTestParams = crate::framework::ExampleTestParams {
name: "ray_cube_fragment",
image_path: "/examples/ray_cube_fragment/screenshot.png",
image_path: "/examples/src/ray_cube_fragment/screenshot.png",
width: 1024,
height: 768,
optional_features: wgpu::Features::default(),
Expand Down
15 changes: 12 additions & 3 deletions wgpu-core/src/command/ray_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,10 @@ impl Global {
raw: Mutex::new(Some(scratch_buffer)),
device: device.clone(),
size: max(scratch_buffer_blas_size, scratch_buffer_tlas_size),
info: ResourceInfo::new("Raytracing scratch buffer", None),
info: ResourceInfo::new(
"Raytracing scratch buffer",
Some(device.tracker_indices.tlas_s.clone()),
),
is_coherent: scratch_mapping.is_coherent,
})));

Expand Down Expand Up @@ -1346,7 +1349,10 @@ impl Global {
raw: Mutex::new(Some(staging_buffer)),
device: device.clone(),
size: instance_buffer_staging_source.len() as u64,
info: ResourceInfo::new("Raytracing staging buffer", None),
info: ResourceInfo::new(
"Raytracing scratch buffer",
Some(device.tracker_indices.tlas_s.clone()),
),
is_coherent: mapping.is_coherent,
};
let staging_fid = hub.staging_buffers.request();
Expand Down Expand Up @@ -1534,7 +1540,10 @@ impl Global {
raw: Mutex::new(Some(scratch_buffer)),
device: device.clone(),
size: max(scratch_buffer_blas_size, scratch_buffer_tlas_size),
info: ResourceInfo::new("Raytracing scratch buffer", None),
info: ResourceInfo::new(
"Raytracing scratch buffer",
Some(device.tracker_indices.tlas_s.clone()),
),
is_coherent: scratch_mapping.is_coherent,
};
let staging_fid = hub.staging_buffers.request();
Expand Down

0 comments on commit 67710d7

Please sign in to comment.