mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Add raw_handle method on vulkan::Buffer (#9459)
This commit is contained in:
1 parent
a03e86608d
commit
c406a89bcf
2 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in new issue
Block a user