1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[dxgi] Implement IDXGIDevice3

This commit is contained in:
Philip Rebohle 2018-10-11 10:43:31 +02:00
parent 23ac9b5277
commit 0b7e114cb0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 12 additions and 1 deletions

View File

@ -45,6 +45,7 @@ namespace dxvk {
if (riid == __uuidof(IDXGIDevice)
|| riid == __uuidof(IDXGIDevice1)
|| riid == __uuidof(IDXGIDevice2)
|| riid == __uuidof(IDXGIDevice3)
|| riid == __uuidof(IDXGIVkDevice)) {
*ppvObject = ref(m_dxgiDevice);
return S_OK;

View File

@ -165,6 +165,14 @@ namespace dxvk {
Logger::err("DxgiDevice::EnqueueSetEvent: Not implemented");
return DXGI_ERROR_UNSUPPORTED;
}
void STDMETHODCALLTYPE DxgiDevice::Trim() {
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::warn("DxgiDevice::Trim: Stub");
}
Rc<DxvkDevice> STDMETHODCALLTYPE DxgiDevice::GetDXVKDevice() {

View File

@ -87,6 +87,8 @@ namespace dxvk {
HRESULT STDMETHODCALLTYPE EnqueueSetEvent(
HANDLE hEvent) final;
void STDMETHODCALLTYPE Trim() final;
Rc<DxvkDevice> STDMETHODCALLTYPE GetDXVKDevice() final;
Rc<DxvkEvent> STDMETHODCALLTYPE GetFrameSyncEvent() final;

View File

@ -70,7 +70,7 @@ IDXGIVkSwapChain : public IUnknown {
* this interface.
*/
MIDL_INTERFACE("7a622cf6-627a-46b2-b52f-360ef3da831c")
IDXGIVkDevice : public IDXGIDevice2 {
IDXGIVkDevice : public IDXGIDevice3 {
static const GUID guid;
virtual ~IDXGIVkDevice() { }