1 2 3 4 5 6 7 8
use winapi::um::d3d11::ID3D11DeviceContext; use wio::com::ComPtr; pub struct DeviceContext { ptr: ComPtr<ID3D11DeviceContext>, } com_wrapper!(DeviceContext: ID3D11DeviceContext, send: true, sync: false);