vulkan: add async staging buffer allocation
This commit is contained in:
parent
37fb45df00
commit
b57d86c1bc
4 changed files with 72 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue