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:
parent
9af842801c
commit
a849ffc56c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user