-
Notifications
You must be signed in to change notification settings - Fork 878
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
dfbebba
commit 2069fd2
Showing
9 changed files
with
217 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "../dxvk_platform_exts.h" | ||
|
||
namespace dxvk { | ||
|
||
DxvkPlatformExts DxvkPlatformExts::s_instance; | ||
|
||
std::string_view DxvkPlatformExts::getName() { | ||
return "No WSI"; | ||
} | ||
|
||
|
||
DxvkNameSet DxvkPlatformExts::getInstanceExtensions() { | ||
return {}; | ||
} | ||
|
||
|
||
DxvkNameSet DxvkPlatformExts::getDeviceExtensions( | ||
uint32_t adapterId) { | ||
return {}; | ||
} | ||
|
||
|
||
void DxvkPlatformExts::initInstanceExtensions() { | ||
|
||
} | ||
|
||
|
||
void DxvkPlatformExts::initDeviceExtensions( | ||
const DxvkInstance* instance) { | ||
|
||
} | ||
|
||
} |
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,66 @@ | ||
#include "../wsi_monitor.h" | ||
|
||
#include "wsi/native_wsi.h" | ||
#include "wsi_platform_none.h" | ||
|
||
#include "../../util/util_string.h" | ||
#include "../../util/log/log.h" | ||
|
||
namespace dxvk::wsi { | ||
|
||
HMONITOR getDefaultMonitor() { | ||
return nullptr; | ||
} | ||
|
||
|
||
HMONITOR enumMonitors(uint32_t index) { | ||
return nullptr; | ||
} | ||
|
||
|
||
HMONITOR enumMonitors(const LUID *adapterLUID[], uint32_t numLUIDs, uint32_t index) { | ||
return enumMonitors(index); | ||
} | ||
|
||
|
||
bool getDisplayName( | ||
HMONITOR hMonitor, | ||
WCHAR (&Name)[32]) { | ||
return false; | ||
} | ||
|
||
|
||
bool getDesktopCoordinates( | ||
HMONITOR hMonitor, | ||
RECT* pRect) { | ||
return false; | ||
} | ||
|
||
|
||
bool getDisplayMode( | ||
HMONITOR hMonitor, | ||
uint32_t ModeNumber, | ||
WsiMode* pMode) { | ||
return false; | ||
} | ||
|
||
|
||
bool getCurrentDisplayMode( | ||
HMONITOR hMonitor, | ||
WsiMode* pMode) { | ||
return false; | ||
} | ||
|
||
|
||
bool getDesktopDisplayMode( | ||
HMONITOR hMonitor, | ||
WsiMode* pMode) { | ||
return false; | ||
} | ||
|
||
std::vector<uint8_t> getMonitorEdid(HMONITOR hMonitor) { | ||
Logger::err("getMonitorEdid not implemented on this platform."); | ||
return {}; | ||
} | ||
|
||
} |
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,17 @@ | ||
#pragma once | ||
|
||
#include "../wsi_monitor.h" | ||
|
||
namespace dxvk::wsi { | ||
|
||
/** | ||
* \brief Impl-dependent state | ||
*/ | ||
struct DxvkWindowState { | ||
}; | ||
|
||
inline bool isDisplayValid(int32_t displayId) { | ||
return false; | ||
} | ||
|
||
} |
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,83 @@ | ||
#include "../wsi_window.h" | ||
|
||
#include "native/wsi/native_wsi.h" | ||
#include "wsi_platform_none.h" | ||
|
||
#include "../../util/util_string.h" | ||
#include "../../util/log/log.h" | ||
|
||
namespace dxvk::wsi { | ||
|
||
void getWindowSize( | ||
HWND hWindow, | ||
uint32_t* pWidth, | ||
uint32_t* pHeight) { | ||
} | ||
|
||
|
||
void resizeWindow( | ||
HWND hWindow, | ||
DxvkWindowState* pState, | ||
uint32_t Width, | ||
uint32_t Height) { | ||
} | ||
|
||
|
||
bool setWindowMode( | ||
HMONITOR hMonitor, | ||
HWND hWindow, | ||
const WsiMode& pMode) { | ||
return false; | ||
} | ||
|
||
|
||
|
||
bool enterFullscreenMode( | ||
HMONITOR hMonitor, | ||
HWND hWindow, | ||
DxvkWindowState* pState, | ||
bool ModeSwitch) { | ||
return false; | ||
} | ||
|
||
|
||
bool leaveFullscreenMode( | ||
HWND hWindow, | ||
DxvkWindowState* pState, | ||
bool restoreCoordinates) { | ||
return false; | ||
} | ||
|
||
|
||
bool restoreDisplayMode() { | ||
return false; | ||
} | ||
|
||
|
||
HMONITOR getWindowMonitor(HWND hWindow) { | ||
return nullptr; | ||
} | ||
|
||
|
||
bool isWindow(HWND hWindow) { | ||
return false; | ||
} | ||
|
||
|
||
void updateFullscreenWindow( | ||
HMONITOR hMonitor, | ||
HWND hWindow, | ||
bool forceTopmost) { | ||
} | ||
|
||
|
||
VkResult createSurface( | ||
HWND hWindow, | ||
PFN_vkGetInstanceProcAddr pfnVkGetInstanceProcAddr, | ||
VkInstance instance, | ||
VkSurfaceKHR* pSurface) { | ||
// TODO: Could use VK_EXT_headless_surface here? | ||
return VK_ERROR_FEATURE_NOT_PRESENT; | ||
} | ||
|
||
} |
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