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

[dxgi] Implement IDXGIOutput3

This commit is contained in:
Philip Rebohle 2018-10-11 09:57:56 +02:00
parent 9af842801c
commit a849ffc56c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 25 additions and 2 deletions

View File

@ -48,7 +48,9 @@ namespace dxvk {
if (riid == __uuidof(IUnknown)
|| riid == __uuidof(IDXGIObject)
|| riid == __uuidof(IDXGIOutput)
|| riid == __uuidof(IDXGIOutput1)) {
|| riid == __uuidof(IDXGIOutput1)
|| riid == __uuidof(IDXGIOutput2)
|| riid == __uuidof(IDXGIOutput3)) {
*ppvObject = ref(this);
return S_OK;
}
@ -428,6 +430,20 @@ namespace dxvk {
}
BOOL DxgiOutput::SupportsOverlays() {
return FALSE;
}
HRESULT STDMETHODCALLTYPE DxgiOutput::CheckOverlaySupport(
DXGI_FORMAT EnumFormat,
IUnknown* pConcernedDevice,
UINT* pFlags) {
Logger::warn("DxgiOutput: CheckOverlaySupport: Stub");
return DXGI_ERROR_UNSUPPORTED;
}
HRESULT DxgiOutput::GetDisplayMode(DXGI_MODE_DESC* pMode, DWORD ModeNum) {
::MONITORINFOEXW monInfo;
monInfo.cbSize = sizeof(monInfo);

View File

@ -34,7 +34,7 @@ namespace dxvk {
};
class DxgiOutput : public DxgiObject<IDXGIOutput1> {
class DxgiOutput : public DxgiObject<IDXGIOutput3> {
public:
@ -110,6 +110,13 @@ namespace dxvk {
IUnknown* pDevice,
IDXGIOutputDuplication** ppOutputDuplication) final;
BOOL STDMETHODCALLTYPE SupportsOverlays() final;
HRESULT STDMETHODCALLTYPE CheckOverlaySupport(
DXGI_FORMAT EnumFormat,
IUnknown* pConcernedDevice,
UINT* pFlags) final;
HRESULT GetDisplayMode(
DXGI_MODE_DESC* pMode,
DWORD ModeNum);