1
|
1 /***********************************************************************\
|
|
2 * d3d10misc.d *
|
|
3 * *
|
|
4 * Windows API header module *
|
|
5 * *
|
|
6 * Placed into public domain *
|
|
7 \***********************************************************************/
|
|
8 module win32.directx.d3d10misc;
|
|
9
|
|
10 private import win32.windows;
|
|
11
|
|
12 private import win32.directx.dxgi;
|
|
13 private import win32.directx.d3d10;
|
|
14
|
|
15 extern (C) const GUID IID_ID3D10Blob = {
|
|
16 0x8BA5FB08, 0x5195, 0x40E2, [0xAC, 0x58, 0x0D, 0x98, 0x9C, 0x3A, 0x01, 0x02]
|
|
17 };
|
|
18
|
|
19 interface ID3D10Blob : IUnknown {
|
|
20 extern(Windows) :
|
|
21 LPVOID GetBufferPointer();
|
|
22 SIZE_T GetBufferSize();
|
|
23 }
|
|
24
|
|
25 enum D3D10_DRIVER_TYPE {
|
|
26 D3D10_DRIVER_TYPE_HARDWARE = 0,
|
|
27 D3D10_DRIVER_TYPE_REFERENCE = 1,
|
|
28 D3D10_DRIVER_TYPE_NULL = 2,
|
|
29 D3D10_DRIVER_TYPE_SOFTWARE = 3
|
|
30 }
|
|
31
|
|
32 extern (C) const GUID GUID_DeviceType = {
|
|
33 0xD722FB4D, 0x7A68, 0x437A, [0xB2, 0x0C, 0x58, 0x04, 0xEE, 0x24, 0x94, 0xA6]
|
|
34 };
|
|
35
|
|
36 extern(Windows) {
|
|
37 HRESULT D3D10CreateDevice(IDXGIAdapter pAdapter,
|
|
38 D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags,
|
|
39 UINT SDKVersion, ID3D10Device* ppDevice);
|
|
40 HRESULT D3D10CreateDeviceAndSwapChain(IDXGIAdapter pAdapter,
|
|
41 D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags,
|
|
42 UINT SDKVersion, DXGI_SWAP_CHAIN_DESC* pSwapChainDesc,
|
|
43 IDXGISwapChain* ppSwapChain, ID3D10Device* ppDevice);
|
|
44 HRESULT D3D10CreateBlob(SIZE_T NumBytes, ID3D10Blob* ppBuffer);
|
|
45 }
|