Stefan Schmidt
31c9f026c5
[UI] Force use of Xwayland when running on Wayland
2022-01-12 17:37:54 +03:00
Wunkolo
1a8068b151
[Base] Add user-literals for several memory sizes
...
Rather than using `n * 1024 * 1024`, this adds a convenient `_MiB`/`_KiB` user-literal to the new `literals.h` header to concisely describe units of memory in a much more readable way. Any other useful literals can be added to this header. These literals exist in the `xe::literals` namespace so they are opt-in, similar to `std::chrono` literals, and require a `using namespace xe::literals` statement to utilize it within the current scope.
I've done a pass through the codebase to replace trivial instances of `1024 * 1024 * ...` expressions being used but avoided anything that added additional casting complexity from `size_t` to `uint32_t` and such to keep this commit concise.
2022-01-02 11:51:31 -06:00
Triang3l
e2da8597e1
[UI] Delete the now-unused loop_gtk.h
2021-12-04 16:36:45 +03:00
Triang3l
ddc3885795
[UI] Remove dtor lock as thread join will be done anyway
2021-10-31 16:04:46 +03:00
Triang3l
7e6cf349e2
[Build] Use first-party premake-androidndk ( #1878 )
2021-10-30 00:01:27 +03:00
Triang3l
26a2d814da
[UI] android.app.NativeActivity > WindowedAppActivity + code style
2021-09-18 20:32:24 +03:00
Triang3l
0335571354
[UI] Android CallInUIThread and activity onDestroy
2021-09-15 22:58:11 +03:00
Triang3l
7aeac37eb6
[Base/UI] Android globals initialization + WindowedAppContext parts
2021-09-13 23:09:28 +03:00
Triang3l
6ce5330f5f
[UI] Loop thread to main thread WindowedAppContext
2021-08-28 19:38:24 +03:00
Triang3l
7edfdc2672
Merge branch 'master' into linux_windowing
2021-08-26 22:58:14 +03:00
Triang3l
1e0237d404
[Vulkan] Fix XCB #ifdef
2021-07-12 12:15:47 +03:00
Triang3l
692e329e9c
[Vulkan] Load Vulkan manually for more lifetime and extension control
2021-07-11 22:56:01 +03:00
Triang3l
1cf12ec70b
[UI/HID] ui::VirtualKey enum
2021-07-01 23:32:26 +03:00
Sandy Carter
005e0e21c1
[linux graphics] Remove GLEW
...
OpenGL is not used in the whole stack.
All references are removed.
2021-06-19 13:08:12 -04:00
Sandy Carter
0380067105
[linux vulkan] Remove linking directly with vulkan
...
Using volk means vulkan linking is done at runtime with the dl library.
2021-06-19 13:08:12 -04:00
Sandy Carter
271c91e115
[ui gtk] Fix init, resize and destroy
...
Prevent Vulkan Swap before display context is assigned.
Prevent resize while fullscreen (like in windows impl).
Use superclass Resize implementation to reduce code duplication.
Remove recursive call to GTKWindow::Close().
Destroy xcb window after superclass Close().
Set hwnd to null after closing on windows implementation.
2021-06-19 13:08:12 -04:00
Sandy Carter
0b5ff8332e
[ui gtk] Fix file dialog
...
Use drawing area for vulkan but window for dialogs
2021-06-19 13:08:12 -04:00
Doug Johnson
cdf77d21bc
UI: Improve GTK GUI Abstractions for Linux
2021-06-19 13:08:03 -04:00
Triang3l
14bac72f0d
[D3D12] DirectComposition basic initialization
2021-06-09 22:56:36 +03:00
Triang3l
796eb0f430
[D3D12] Update shader bytecode .h path in premake5.lua
2021-06-07 21:28:39 +03:00
Triang3l
12a907bfa5
[GPU] Shaders to common, xb buildshaders instead of buildhlsl
2021-06-05 18:53:53 +03:00
Triang3l
800db1aa49
[D3D12] Cleanup initialization log levels
2021-05-19 21:10:05 +03:00
Sandy Carter
31a8d189f0
[vulkan] Fix typos
2021-05-17 11:14:48 -04:00
Sandy Carter
c4a2dff099
[vulkan] Add Report Callback to instance create
2021-05-17 11:14:48 -04:00
Sandy Carter
5ed4f88091
[vulkan linux] Add extension requirement for XCB
2021-05-17 11:14:48 -04:00
Sandy Carter
6d591970ab
[vulkan linux] Fix native_platform_handle with gtk
...
Use gtk connection as handle and use it when creating surface.
2021-05-17 11:14:48 -04:00
gibbed
0419a9f13d
[App] Build title using StringBuffer.
2021-05-01 17:29:05 -05:00
gibbed
46ee68eb1d
[UI] Log unsuccessful SPDA result as unsigned.
...
[UI] Log unsuccessful SetProcessDpiAwareness result as unsigned.
2021-05-01 17:26:54 -05:00
Triang3l
556893177b
[D3D12] Better D3D12 initialization failure error message
2021-04-28 21:13:00 +03:00
Triang3l
913e1e949c
[GPU] Ownership-transfer-based RT cache, 3x3 resolution scaling
...
The ROV path is also disabled by default because of lower performance
2021-04-26 22:12:09 +03:00
Prism Tutaj
a86609e93a
[GTK UI] Fix GTK submenus
2020-12-06 17:26:30 -06:00
Triang3l
fe9b5b4a8f
[D3D12] Cleanup: remove inline
2020-11-14 17:02:09 +03:00
Triang3l
6b988d43c7
[D3D12] Cleanup: pipeline state -> pipeline, other things
2020-11-14 16:43:18 +03:00
Triang3l
81ee7b4c39
[D3D12] Minor FINE_GRAINED_DRAW_SCOPES refactoring
2020-10-04 21:49:10 +03:00
Triang3l
c2e8c5554d
[UI] Replace ImmediateTexture handles with pointers + small cleanup
2020-09-27 16:30:53 +03:00
Triang3l
f5f8714c3f
[D3D12] Delayed ImmediateTexture releasing
2020-09-27 16:21:14 +03:00
Triang3l
d437555036
[UI] Remove immdraw restrict_texture_samples + cleanup
2020-09-26 22:06:04 +03:00
Triang3l
18031a8f6d
[D3D12] Immdraw texture upload leak fix + cleanup
2020-09-26 18:36:31 +03:00
Triang3l
c218d6dc10
[D3D12] Move D3D12ImmediateTexture to D3D12ImmediateDrawer
2020-09-21 23:15:51 +03:00
Triang3l
fc55b1f81d
[UI] Remove pass-unfriendly UpdateTexture of ImmediateDrawer
2020-09-20 20:34:22 +03:00
Triang3l
183c7eee2b
[D3D12] Various refactoring mostly on the immediate drawer side, cache immdraw scissor, force stretch alpha to 1
2020-09-20 15:15:08 +03:00
Triang3l
6ba0620b10
[UI] Fix build error due to undeclared size_t
2020-09-18 21:20:37 +03:00
Triang3l
5c291d0589
[D3D12] Remove unneeded code things from pools
2020-09-17 22:55:16 +03:00
Triang3l
3236d0ae75
[D3D12] Fix DescriptorHeapPool closing comment
2020-09-17 22:01:41 +03:00
Triang3l
7c2245bb94
[UI] Remove GraphicsUploadBufferPool double include
2020-09-17 21:39:11 +03:00
Triang3l
189a38826f
[UI] UploadBufferPool common code
2020-09-17 21:37:44 +03:00
Triang3l
2cebd3cabe
[D3D12] Unify UploadBufferPool page size (2 MB), add alignment parameter
2020-09-15 22:13:53 +03:00
Triang3l
dfbe36a8aa
[UI/D3D12] Small refactoring, allow BeginSwap to return false if no surface
2020-09-14 23:27:19 +03:00
Triang3l
acb1fc059f
[D3D12] Make the feature list in the log sorted again
2020-09-06 00:57:00 +03:00
Triang3l
38e0cc4941
[D3D12] Non-zeroed heaps on 2004
2020-09-06 00:52:30 +03:00