1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Command Allocator use crate::com::WeakPtr; use winapi::um::d3d12; pub type CommandAllocator = WeakPtr<d3d12::ID3D12CommandAllocator>; impl CommandAllocator { pub fn reset(&self) { unsafe { self.Reset(); } } }