d3d11 0.3.3

Safe(r) bindings to the D3D11 API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::query::Asynchronous;

use super::DeviceContext;

#[cfg_attr(feature = "profiling", profiling::all_functions)]
impl DeviceContext {
    pub fn begin(&self, async_: &impl Asynchronous) {
        unsafe {
            self.0.Begin(&async_.to_ffi_async());
        }
    }

    pub fn end(&self, async_: &impl Asynchronous) {
        unsafe {
            self.0.End(&async_.to_ffi_async());
        }
    }
}