render: implement a vulkan renderer
This commit is contained in:
parent
4ba8550da8
commit
cf332e8436
66 changed files with 4287 additions and 239 deletions
|
|
@ -1,5 +1,8 @@
|
|||
use {
|
||||
crate::utils::ptr_ext::{MutPtrExt, PtrExt},
|
||||
crate::utils::{
|
||||
clonecell::UnsafeCellCloneSafe,
|
||||
ptr_ext::{MutPtrExt, PtrExt},
|
||||
},
|
||||
std::{cell::UnsafeCell, mem},
|
||||
};
|
||||
|
||||
|
|
@ -28,7 +31,7 @@ impl<T> Stack<T> {
|
|||
|
||||
pub fn to_vec(&self) -> Vec<T>
|
||||
where
|
||||
T: Clone,
|
||||
T: UnsafeCellCloneSafe,
|
||||
{
|
||||
unsafe {
|
||||
let v = self.vec.get().deref();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue