1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![cfg(windows)]
extern crate winapi;
use winapi::*;
#[cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "arm"))]
extern "system" {
pub fn CreateDXGIFactory(riid: REFIID, ppFactory: *mut *mut c_void) -> HRESULT;
pub fn CreateDXGIFactory1(riid: REFIID, ppFactory: *mut *mut c_void) -> HRESULT;
pub fn CreateDXGIFactory2(
Flags: UINT, riid: REFIID, ppFactory: *mut *mut c_void
) -> HRESULT;
pub fn DXGIGetDebugInterface1(
Flags: UINT, riid: REFIID, pDebug: *mut *mut c_void,
) -> HRESULT;
}