Skip to content

Commit d294535

Browse files
committed
Implements Device::get_acceleration_structure_device_address().
1 parent 61d27e2 commit d294535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgpu-hal/src/metal/device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,9 +1679,9 @@ impl crate::Device for super::Device {
16791679

16801680
unsafe fn get_acceleration_structure_device_address(
16811681
&self,
1682-
_acceleration_structure: &super::AccelerationStructure,
1682+
acceleration_structure: &super::AccelerationStructure,
16831683
) -> wgt::BufferAddress {
1684-
unimplemented!()
1684+
acceleration_structure.raw.gpuResourceID().to_raw()
16851685
}
16861686

16871687
unsafe fn create_acceleration_structure(

0 commit comments

Comments
 (0)