Initial directx example.
This commit is contained in:
parent
1dfbcc61c4
commit
92d1f24613
28 changed files with 683 additions and 212 deletions
24
src/windows/ui_interfaces/win32/Win32DxInterface.h
Normal file
24
src/windows/ui_interfaces/win32/Win32DxInterface.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include <wrl.h>
|
||||
|
||||
struct ID3D12Device;
|
||||
struct IDXGIFactory7;
|
||||
struct IDXGIAdapter1;
|
||||
|
||||
class Win32DxInterface
|
||||
{
|
||||
public:
|
||||
|
||||
void initialize();
|
||||
|
||||
ID3D12Device* getDevice() const;
|
||||
|
||||
IDXGIFactory7* getFactory() const;
|
||||
|
||||
private:
|
||||
void getHardwareAdapter(IDXGIAdapter1** ppAdapter);
|
||||
|
||||
Microsoft::WRL::ComPtr<IDXGIFactory7> mFactory;
|
||||
Microsoft::WRL::ComPtr<ID3D12Device> mDevice;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue