22#include <kiwano/macros.h>
23#include <kiwano/render/DirectX/helper.h>
24#include <kiwano/render/DirectX/D3DDeviceResourcesBase.h>
34MIDL_INTERFACE(
"3a150b9d-cc23-4022-a463-7e95452a54c4")
35KGE_API ID3D10DeviceResources : public ID3DDeviceResourcesBase
38 inline ID3D10Device* GetDevice()
44 inline ID3D10RenderTargetView* GetRenderTargetView()
47 return rt_view_.Get();
50 inline ID3D10DepthStencilView* GetDepthStencilView()
53 return ds_view_.Get();
56 inline IDXGIFactory* GetDXGIFactory()
58 KGE_ASSERT(dxgi_factory_);
59 return dxgi_factory_.Get();
62 inline IDXGIDevice* GetDXGIDevice()
64 KGE_ASSERT(dxgi_device_);
65 return dxgi_device_.Get();
68 inline IDXGISwapChain* GetDXGISwapChain()
70 KGE_ASSERT(dxgi_swap_chain_);
71 return dxgi_swap_chain_.Get();
75 ComPtr<ID3D10Device> device_;
76 ComPtr<ID3D10RenderTargetView> rt_view_;
77 ComPtr<ID3D10DepthStencilView> ds_view_;
78 ComPtr<IDXGIFactory> dxgi_factory_;
79 ComPtr<IDXGIDevice> dxgi_device_;
80 ComPtr<IDXGISwapChain> dxgi_swap_chain_;
83extern ComPtr<ID3D10DeviceResources> GetD3D11DeviceResources();