forked from doitsujin/dxvk
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8667733
commit c333d4f
Showing
49 changed files
with
1,278 additions
and
487 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
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,37 @@ | ||
#include "d3d11_context.h" | ||
#include "d3d11_device.h" | ||
#include "d3d11_gdi.h" | ||
|
||
namespace dxvk { | ||
|
||
D3D11GDISurface::D3D11GDISurface( | ||
ID3D11Resource* pResource, | ||
UINT Subresource) | ||
: m_resource (pResource), | ||
m_subresource (Subresource), | ||
m_readback (nullptr), | ||
m_hdc (nullptr), | ||
m_hbitmap (nullptr), | ||
m_acquired (false) { } | ||
|
||
|
||
D3D11GDISurface::~D3D11GDISurface() { | ||
} | ||
|
||
|
||
HRESULT D3D11GDISurface::Acquire(BOOL Discard, HDC* phdc) { | ||
Logger::err("D3D11: GDI Interop not supported on this platform."); | ||
return DXGI_ERROR_INVALID_CALL; | ||
} | ||
|
||
|
||
HRESULT D3D11GDISurface::Release(const RECT* pDirtyRect) { | ||
Logger::err("D3D11: GDI Interop not supported on this platform."); | ||
|
||
return DXGI_ERROR_INVALID_CALL; | ||
} | ||
|
||
|
||
HRESULT D3D11GDISurface::CreateReadbackResource() { return S_OK; } | ||
This comment has been minimized.
Sorry, something went wrong.
doitsujin
|
||
|
||
} |
File renamed without changes.
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 |
---|---|---|
|
@@ -141,7 +141,7 @@ namespace dxvk { | |
} | ||
|
||
// TODO support multiple monitors | ||
HMONITOR monitor = ::MonitorFromPoint({ 0, 0 }, MONITOR_DEFAULTTOPRIMARY); | ||
HMONITOR monitor = GetPrimaryMonitor(); | ||
This comment has been minimized.
Sorry, something went wrong.
doitsujin
|
||
*ppOutput = ref(new DxgiOutput(m_factory, this, monitor)); | ||
return S_OK; | ||
} | ||
|
@@ -223,8 +223,13 @@ namespace dxvk { | |
|
||
// Convert device name | ||
std::memset(pDesc->Description, 0, sizeof(pDesc->Description)); | ||
|
||
#ifndef DXVK_NATIVE | ||
::MultiByteToWideChar(CP_UTF8, 0, deviceProp.deviceName, -1, | ||
pDesc->Description, sizeof(pDesc->Description) / sizeof(*pDesc->Description)); | ||
#else | ||
mbstowcs(pDesc->Description, deviceProp.deviceName, sizeof(pDesc->Description) / sizeof(*pDesc->Description)); | ||
This comment has been minimized.
Sorry, something went wrong.
doitsujin
|
||
#endif | ||
|
||
// Get amount of video memory | ||
// based on the Vulkan heaps | ||
|
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
Oops, something went wrong.
Why?