We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1515e90 commit 03ea0eaCopy full SHA for 03ea0ea
wgpu-hal/src/metal/device.rs
@@ -1613,9 +1613,13 @@ impl crate::Device for super::Device {
1613
1614
unsafe fn create_acceleration_structure(
1615
&self,
1616
- _desc: &crate::AccelerationStructureDescriptor,
+ descriptor: &crate::AccelerationStructureDescriptor,
1617
) -> Result<super::AccelerationStructure, crate::DeviceError> {
1618
- unimplemented!()
+ // self.counters.acceleration_structures.add(1);
1619
+ let device = self.shared.device.lock();
1620
+ Ok(super::AccelerationStructure {
1621
+ raw: device.new_acceleration_structure_with_size(descriptor.size),
1622
+ })
1623
}
1624
1625
unsafe fn destroy_acceleration_structure(
0 commit comments