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:
parent
23ac9b5277
commit
0b7e114cb0
@ -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;
|
||||
|
@ -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() {
|
||||
|
@ -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;
|
||||
|
@ -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() { }
|
||||
|
Loading…
Reference in New Issue
Block a user