summaryrefslogtreecommitdiffstats
path: root/third_party/rust/d3d12/src/command_allocator.rs
blob: 15b373583e15f2fdd82923ba55b63caee2f57c89 (plain)
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();
        }
    }
}