Add raw_handle method on vulkan::Buffer (#9459)

This commit is contained in:
Willow Griffiths authored and GitHub committed 2026-04-29 18:51:07 -04:00
1 parent a03e86608d
commit c406a89bcf
2 files changed
+7

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ By @andyleiserson in [#9321](https://github.com/gfx-rs/wgpu/pull/9321).
- DRM support by @rectalogic in [#9182](https://github.com/gfx-rs/wgpu/pull/9182).
- Conditional compilation by @jimblandy in [#9390](https://github.com/gfx-rs/wgpu/pull/9390)
- Fixed alignment and MatrixStride for mat2x2 in SPIR-V uniform blocks. By @39ali [#9369](https://github.com/gfx-rs/wgpu/pull/9369).
- Add `wgpu_hal::vulkan::Buffer::raw_handle()` for retrieving the underlying `vk::Buffer` resource. By @WillowGriffiths in [#9459](https://github.com/gfx-rs/wgpu/pull/9459).
#### naga
+6
View File
@@ -695,6 +695,12 @@ impl Buffer {
})),
}
}
/// # Safety
/// - The buffer handle must not be manually destroyed
pub unsafe fn raw_handle(&self) -> vk::Buffer {
self.raw
}
}
impl crate::DynBuffer for Buffer {}