-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73810f3
commit 242c098
Showing
3 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef DXGI_DXVK_H | ||
#define DXGI_DXVK_H | ||
|
||
#include <dxgi.h> | ||
|
||
static const IID D3D_IID_IDxvkWsi = {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}; | ||
|
||
typedef struct IDxvkWsi IDxvkWsi; | ||
|
||
/* TODO: vtable for IDxvkWsi */ | ||
|
||
#endif /* DXGI_DXVK_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef DXVK_SDL2_H | ||
#define DXVK_SDL2_H | ||
|
||
#include <windows.h> | ||
|
||
extern HRESULT dxvkInitWSI(void* factory); | ||
|
||
#endif /* DXVK_SDL2_H */ | ||
|
||
#ifdef DXVK_SDL2_IMPL | ||
|
||
#include <dxgi_dxvk.h> | ||
|
||
/* TODO: Define static functions for DXGI vtable */ | ||
|
||
HRESULT dxvkInitWSI(void* factory) | ||
{ | ||
IDxvkWsi *wsi; | ||
HRESULT res = IDXGIFactory1_QueryInterface( | ||
(IDXGIFactory1*) factory, | ||
&D3D_IID_IDxvkWsi, | ||
(void**) &wsi | ||
); | ||
if (FAILED(res)) | ||
{ | ||
return res; | ||
} | ||
|
||
/* TODO: wsi->SetWSI(vtable) */ | ||
return E_NOTIMPL; | ||
} | ||
|
||
#endif /* DXVK_SDL2_IMPL */ |