-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #3445
- Loading branch information
Showing
9 changed files
with
136 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
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
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
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,35 @@ | ||
#include "d3d9_on_12.h" | ||
|
||
#include "d3d9_device.h" | ||
|
||
namespace dxvk { | ||
|
||
D3D9On12::D3D9On12(D3D9DeviceEx* device) | ||
: m_device(device) { | ||
|
||
} | ||
|
||
HRESULT STDMETHODCALLTYPE D3D9On12::QueryInterface(REFIID riid, void** object) { | ||
return m_device->QueryInterface(riid, object); | ||
} | ||
ULONG STDMETHODCALLTYPE D3D9On12::AddRef() { | ||
return m_device->AddRef(); | ||
} | ||
ULONG STDMETHODCALLTYPE D3D9On12::Release() { | ||
return m_device->Release(); | ||
} | ||
|
||
HRESULT STDMETHODCALLTYPE D3D9On12::GetD3D12Device(REFIID riid, void** object) { | ||
Logger::err("D3D9On12::GetD3D12Device: Stub"); | ||
return E_NOINTERFACE; | ||
} | ||
HRESULT STDMETHODCALLTYPE D3D9On12::UnwrapUnderlyingResource(IDirect3DResource9* resource, ID3D12CommandQueue* command_queue, REFIID riid, void** object) { | ||
Logger::err("D3D9On12::GetD3D12Device: UnwrapUnderlyingResource: Stub"); | ||
return E_NOINTERFACE; | ||
} | ||
HRESULT STDMETHODCALLTYPE D3D9On12::ReturnUnderlyingResource(IDirect3DResource9* resource, UINT num_sync, UINT64* signal_values, ID3D12Fence** fences) { | ||
Logger::err("D3D9On12::GetD3D12Device: ReturnUnderlyingResource: Stub"); | ||
return E_NOINTERFACE; | ||
} | ||
|
||
} |
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,29 @@ | ||
#pragma once | ||
|
||
#include "d3d9_include.h" | ||
|
||
namespace dxvk { | ||
|
||
class D3D9DeviceEx; | ||
|
||
class D3D9On12 final : public IDirect3DDevice9On12 { | ||
|
||
public: | ||
|
||
D3D9On12(D3D9DeviceEx* device); | ||
|
||
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** object); | ||
ULONG STDMETHODCALLTYPE AddRef(); | ||
ULONG STDMETHODCALLTYPE Release(); | ||
|
||
HRESULT STDMETHODCALLTYPE GetD3D12Device(REFIID riid, void** object); | ||
HRESULT STDMETHODCALLTYPE UnwrapUnderlyingResource(IDirect3DResource9* resource, ID3D12CommandQueue* command_queue, REFIID riid, void** object); | ||
HRESULT STDMETHODCALLTYPE ReturnUnderlyingResource(IDirect3DResource9* resource, UINT num_sync, UINT64* signal_values, ID3D12Fence** fences); | ||
|
||
private: | ||
|
||
D3D9DeviceEx* m_device; | ||
|
||
}; | ||
|
||
} |
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