1
0
Fork 0
forked from wry/wry

vulkan: add async staging buffer allocation

This commit is contained in:
Julian Orth 2024-09-07 17:42:29 +02:00
parent 37fb45df00
commit b57d86c1bc
4 changed files with 72 additions and 23 deletions

View file

@ -24,14 +24,12 @@ where
}
impl<F: FnOnce()> OnDrop2<F> {
#[expect(dead_code)]
pub fn new(f: F) -> Self {
Self {
f: ManuallyDrop::new(f),
}
}
#[expect(dead_code)]
pub fn forget(mut self) {
unsafe {
ManuallyDrop::drop(&mut self.f);