Skip to content

Commit

Permalink
Update wgpu-hal/src/dx12/device.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nical authored Feb 10, 2025
1 parent aebed93 commit de10b2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wgpu-hal/src/dx12/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,9 @@ impl crate::Device for super::Device {
// transform in D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC, without
// dereferencing it.
//
// This means we could just use one here (but just in case we use a real address).
// This suggests we could pass a non-zero invalid address here if fetching the
// real address has significant overhead, but we pass the real one to be on the
// safe side for now.
Transform3x4: if desc
.flags
.contains(wgt::AccelerationStructureFlags::USE_TRANSFORM)
Expand Down

0 comments on commit de10b2f

Please sign in to comment.