summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* externals: update dynarmic, SDL2Liam2022-12-041-6/+0
|
* Vulkan: update initializationLiam2022-11-271-15/+12
| | | | Co-authored-by: bylaws <bylaws@users.noreply.github.com>
* Add break for default casesKyle Kienapfel2022-11-141-0/+1
| | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return
* yuzu_cmd: Eliminate variable shadowingMorph2022-06-141-2/+2
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* yuzu_cmd: Reduce unused includesameerj2022-03-201-2/+0
|
* yuzu-cmd: hide cursor when in fullscreensan2021-08-011-0/+1
| | | Exposed the SDL_ShowCursor function to EmuWindow baseclass. When creating the window (GL or VK) in fullscreen it now automatically hides the cursor.
* emu_window: Remove global system instancelat9nq2021-07-301-2/+3
| | | | | | | It was just the one in emu_window_sdl2, but since _gl and _vk inherit from it, they all needed adjustments. Leaves just the one auto system& in main().
* yuzu-cmd: Fullscreen Improvements (#6656)san2021-07-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emu_window_sdl2_vk: Use the generated SDL config On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd. * emu_window_sdl2_vk: Specify the window manager if it should be supported The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting. * sdl_impl, emu_window: Remove clang ignore Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd * Enable fullscreen support for Vulkan on yuzu-cmd Hooked up the existing SDL2 logic for fullscreen support in the Vulkan window of yuzu-cmd. * Change fullscreen logic to attempt desktop resolution first on yuzu-cmd Changed the order in which we attempt to switch to fullscreen. First try desktop resolution first, if it fails fall back to streched fullscreen using windowed resolution. Co-authored-by: lat9nq <22451773+lat9nq@users.noreply.github.com> Co-authored-by: san <san+gitkraken@smederijmerlijn.nl>
* sdl_impl, emu_window: Remove clang ignorelat9nq2021-07-161-9/+0
| | | | | Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd
* emu_window_sdl2_vk: Specify the window manager if it should be supportedlat9nq2021-07-161-0/+15
| | | | | | | The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting.
* emu_window_sdl2_vk: Use the generated SDL configlat9nq2021-07-161-0/+6
| | | | | | | | | | | On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd.
* general: Ignore implicit-fallthrough for SDL.hlat9nq2021-04-181-0/+8
| | | | | | SDL 2.0.14 introduces an incompatibility with Clang, causing it to trigger -Wimplicit-fallthrough even though it is marked. Ignore it for now, with a comment mentioning why this is needed.
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* yuzu: Various frontend improvements to avoid crashes and improve experience on Linux.bunnei2021-02-141-0/+2
|
* renderer_opengl: Remove emulated mailbox presentationReinUsesLisp2020-09-201-7/+2
| | | | | Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it.
* input_common: Eliminate most global stateLioncash2020-08-271-2/+3
| | | | | | | | | | | | | Abstracts most of the input mechanisms under an InputSubsystem class that is managed by the frontends, eliminating any static constructors and destructors. This gets rid of global accessor functions and also allows the frontends to have a more fine-grained control over the lifecycle of the input subsystem. This also makes it explicit which interfaces rely on the input subsystem instead of making it opaque in the interface functions. All that remains to migrate over is the factories, which can be done in a separate change.
* Add missing ;H27CK2020-04-221-1/+1
|
* Init SDL info structure and add dummy contextH27CK2020-04-221-1/+2
|
* yuzu: Drop SDL2 and Qt frontend Vulkan requirementsReinUsesLisp2020-04-071-119/+40
| | | | Create Vulkan instances and surfaces from the Vulkan backend.
* Frontend/GPU: Refactor context managementJames Rowe2020-03-251-8/+0
| | | | | | | | | | | | | | | | | | | | Changes the GraphicsContext to be managed by the GPU core. This eliminates the need for the frontends to fool around with tricky MakeCurrent/DoneCurrent calls that are dependent on the settings (such as async gpu option). This also refactors out the need to use QWidget::fromWindowContainer as that caused issues with focus and input handling. Now we use a regular QWidget and just access the native windowHandle() directly. Another change is removing the debug tool setting in FrameMailbox. Instead of trying to block the frontend until a new frame is ready, the core will now take over presentation and draw directly to the window if the renderer detects that its hooked by NSight or RenderDoc Lastly, since it was in the way, I removed ScopeAcquireWindowContext and replaced it with a simple subclass in GraphicsContext that achieves the same result
* frontend: qt: bootmanager: Vulkan: Restore support for VK backend.bunnei2020-02-261-1/+3
|
* frontend: sdl2: emu_window: Implement separate presentation thread.bunnei2020-02-261-3/+4
|
* yuzu_cmd: Fix memcpy on Vulkan handlersReinUsesLisp2020-01-291-7/+8
|
* yuzu: Implement Vulkan frontendReinUsesLisp2020-01-291-0/+161
Adds a Qt and SDL2 frontend for Vulkan. It also finishes the missing bits on Vulkan initialization.