mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[dxgi] Removed remaining SDL code
This commit is contained in:
parent
2b5bb16334
commit
745ded47e0
@ -10,7 +10,6 @@ For the current status of the project, please refer to the [project wiki](https:
|
||||
- [wine-staging](https://wine-staging.com/) for Vulkan support
|
||||
- [Meson](http://mesonbuild.com/) build system
|
||||
- [MinGW64](http://mingw-w64.org/) compiler and headers
|
||||
- [SDL2](https://www.libsdl.org/) headers and DLL
|
||||
|
||||
### Building DLLs
|
||||
Inside the dxvk directory, run:
|
||||
@ -28,7 +27,7 @@ Both `dxgi.dll` and `d3d11.dll`as well as some demo executables will be located
|
||||
|
||||
## How to use
|
||||
In order to run `executable.exe` with DXVK,
|
||||
* Copy `dxgi.dll`, `d3d11.dll` and `SDL2.dll` into the same directory as the executable
|
||||
* Copy `dxgi.dll` and `d3d11.dll` into the same directory as the executable
|
||||
* Run `WINEDLLOVERRIDES=d3d11,dxgi=n wine executable.exe`
|
||||
|
||||
DXVK will create a file `dxgi.log` in the current working directory and may print out messages to stderr.
|
||||
|
BIN
lib/SDL2.lib
BIN
lib/SDL2.lib
Binary file not shown.
BIN
lib32/SDL2.lib
BIN
lib32/SDL2.lib
Binary file not shown.
@ -12,7 +12,6 @@ else
|
||||
endif
|
||||
|
||||
lib_vulkan = dxvk_compiler.find_library('vulkan-1', dirs : dxvk_library_path)
|
||||
lib_sdl2 = dxvk_compiler.find_library('SDL2', dirs : dxvk_library_path)
|
||||
|
||||
lib_d3d11 = dxvk_compiler.find_library('d3d11')
|
||||
lib_dxgi = dxvk_compiler.find_library('dxgi')
|
||||
|
@ -19,8 +19,6 @@
|
||||
|
||||
#include <dxgi1_2.h>
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
// For some reason, these are not exposed
|
||||
#ifndef DXGI_RESOURCE_PRIORITY_NORMAL
|
||||
#define DXGI_RESOURCE_PRIORITY_MINIMUM (0x28000000)
|
||||
|
@ -5,19 +5,6 @@ namespace dxvk {
|
||||
|
||||
Logger Logger::s_instance("dxgi.log");
|
||||
|
||||
struct SdlInstance {
|
||||
SdlInstance() {
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE))
|
||||
Logger::err("Instance::init: Failed to initialize SDL");
|
||||
}
|
||||
|
||||
~SdlInstance() {
|
||||
SDL_Quit();
|
||||
}
|
||||
};
|
||||
|
||||
SdlInstance sdl;
|
||||
|
||||
HRESULT createDxgiFactory(REFIID riid, void **ppFactory) {
|
||||
if (riid != __uuidof(IDXGIFactory)
|
||||
&& riid != __uuidof(IDXGIFactory1)) {
|
||||
|
@ -51,7 +51,7 @@ thread_dep = dependency('threads')
|
||||
|
||||
dxvk_lib = static_library('dxvk', dxvk_src, glsl_generator.process(dxvk_hud_shaders),
|
||||
link_with : [ util_lib, spirv_lib ],
|
||||
dependencies : [ thread_dep, lib_vulkan, lib_sdl2 ],
|
||||
dependencies : [ thread_dep, lib_vulkan ],
|
||||
include_directories : [ dxvk_include_path ])
|
||||
|
||||
dxvk_dep = declare_dependency(
|
||||
|
Loading…
x
Reference in New Issue
Block a user