diff --git a/ash/src/vk/definitions.rs b/ash/src/vk/definitions.rs index fe0d468..c2955d1 100644 --- a/ash/src/vk/definitions.rs +++ b/ash/src/vk/definitions.rs @@ -41669,10 +41669,10 @@ impl<'a> AccelerationStructureBuildGeometryInfoKHRBuilder<'a> { } pub fn geometries_ptrs( mut self, - geometries: &'a [*const AccelerationStructureGeometryKHR], + geometries: &'a [&'a AccelerationStructureGeometryKHR], ) -> Self { self.inner.geometry_count = geometries.len() as _; - self.inner.pp_geometries = geometries.as_ptr(); + self.inner.pp_geometries = geometries.as_ptr() as *const *const _; self } pub fn scratch_data(mut self, scratch_data: DeviceOrHostAddressKHR) -> Self { diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 7bb5294..1f77d07 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1797,9 +1797,9 @@ pub fn derive_setters( if name == "ppGeometries" { return Some(quote!{ - pub fn geometries_ptrs(mut self, geometries: &'a [*const AccelerationStructureGeometryKHR]) -> Self { + pub fn geometries_ptrs(mut self, geometries: &'a [&'a AccelerationStructureGeometryKHR]) -> Self { self.inner.geometry_count = geometries.len() as _; - self.inner.pp_geometries = geometries.as_ptr(); + self.inner.pp_geometries = geometries.as_ptr() as *const *const _; self } });