Sascha Willems
de61539799
Store instance extensions, reworked support check
2020-08-27 19:56:02 +02:00
Jérôme Leclercq
3298455373
Output warning to stderr if an extension is not supported ( #756 )
2020-08-27 19:36:24 +02:00
Sascha Willems
d5be770f55
Merge branch 'master' of https://github.com/SaschaWillems/Vulkan
2020-08-24 20:04:53 +02:00
Sascha Willems
236a424955
Fixed full screen mode for resolutions different than current desktop size
2020-08-24 20:04:46 +02:00
datenwolf
fd202bfc76
xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error ( #720 )
...
* xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error: Fixed the error check to conform to XCB and assert nonnull pointer
* merged with newest master from upstream (tagged ktx)
Co-authored-by: Wolfgang Draxinger <code@datenwolf.net>
Co-authored-by: datenwolf <dw@kraeh.datenwolf.net>
2020-08-24 08:01:23 +02:00
Sascha Willems
d32663d569
Merged #729
2020-08-23 18:05:39 +02:00
Sascha Willems
9e22fe7b0d
Add resized flag to base class
2020-08-16 10:22:45 +02:00
Sascha Willems
b0376aea5e
Fixed some compiler warnings and obvious errors
2020-08-09 15:10:28 +02:00
Sascha Willems
e1ec3b6c78
Fixed typos
2020-08-08 13:25:58 +02:00
Sascha Willems
14536c6ec7
Removed unused Android code
2020-08-06 08:02:27 +02:00
Sascha Willems
29b5ba5abe
Merge pull request #704 from MattGuerrette/master
...
Update WM_CLASS property on Linux using xcb
2020-07-30 19:54:09 +02:00
Ben Clayton
301e8abf12
Add command flag for picking between shaders
...
The new `-s`, `--shaders` command line flag allows you to specify whether you want to load the glsl or hlsl shaders.
Defaults to glsl.
Issue: #723
2020-06-01 12:22:28 +01:00
Ben Clayton
ca884587a4
Move shaders into glsl and hlsl directories
...
Move `data/shaders` to `data/shaders/glsl`
Move `data/hlsl` to `data/shaders/hlsl`
Fix up shader paths in the cpp files to point to the new glsl location.
`data/shaders/hlsl/compile.py` still overwrites the glsl .spv files (for
now).
Issue: #723
2020-06-01 12:22:28 +01:00
Matt Guerrette
ddf70467d4
Update WM_CLASS property on Linux using xcb
...
This commit updates the WM_CLASS property to display a better
title than "Unknown" for each example in the dash and application menu.
Update WM_CLASS property on Linux using xcb
This commit updates the WM_CLASS property to display a better
title than "Unknown" for each example in the dash and application menu.
2020-04-30 11:29:50 -04:00
Sascha Willems
ab38f8b150
Code-Cleanup: All samples now use the camera class and it's matrices
...
Cleaned up base class
2020-04-22 20:58:24 +02:00
Sascha Willems
53846d8b1d
Code cleanup
2020-04-20 22:13:51 +02:00
Sascha Willems
458c149c71
Code cleanup
2020-04-20 20:29:15 +02:00
Sascha Willems
cbe751d26e
Base class cleanup and restructuring
2020-04-19 10:05:47 +02:00
Sascha Willems
bb8d4c6df1
Add default frame submission function to base class
2020-04-19 09:17:53 +02:00
Petr Kraus
2a986b6a87
Fix some whitespace
2020-03-05 21:20:42 +01:00
Sascha Willems
662d2b3464
Centralize asset path handling
...
Refs #470
Refs #627
2020-02-17 21:09:27 +01:00
Sascha Willems
db1d12d77f
Force minimum window size on Windows
...
Fixes #579
2020-01-24 09:52:26 +01:00
Sascha Willems
ed3d771ce4
Removed unused usage flags on depth stencil image
...
Fixes #492
2020-01-24 09:39:44 +01:00
Sascha Willems
b3214c521b
Use VK_EXT_debug_utils instead of deprecated VK_EXT_debug_report for debugging
2019-10-18 20:51:46 +02:00
Sascha Willems
10129ee606
Uee new VK_LAYER_KHRONOS_validation layer on all platforms
...
Check if validation layer is actually present
2019-10-18 20:48:50 +02:00
Sascha Willems
01bf10f9a8
Uee new VK_LAYER_KHRONOS_validation layer on all platforms
...
Check if validation layer is actually present
2019-10-18 20:28:54 +02:00
Sascha Willems
2f985f2aae
Fixed some compiler warnings
2019-08-18 18:33:16 +02:00
Sascha Willems
4318c6d43e
Added new functionality for passing extension structures to device creation
2019-06-10 08:46:11 +02:00
Sascha Willems
84b1c30714
Correct calling convention
...
Fixes #556
2019-03-31 21:24:45 +02:00
Lionel Landwerlin
9db191f9a9
Make FPS counter more accurate
...
While trying to figure a discrepancy between the FPS counter from the
overlay we've introduced in Mesa [1] and the counter in the Vulkan
demos, I figured the demos are not accounting for part of the
rendering loop but rather just the amount of time spent rendering.
This changes accounts for the total amount of time between 2 frames. I
don't think any difference is visible until you reach high frame rates
of 100s or so.
[1]: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/303
2019-02-23 20:51:38 +00:00
Sascha Willems
6e14084bdd
Only set stencil aspect on image view if depth format has stencil component
...
Fixes #529
2019-02-20 19:56:42 +01:00
Scott Moreau
203ea178d0
wayland: Port to xdg-shell stable
...
Wayland compositors and clients are expected to support the xdg-shell
stable protocol over the deprecated wl_shell protocol.
2019-01-16 01:33:34 -07:00
saschawillems
e9c4cd4a0b
Optimized UI overlay strategy
2018-09-01 12:58:28 +02:00
saschawillems
69c3f62b9a
Streamlined UI overlay, code cleanup
...
Refs #496
2018-08-31 21:15:43 +02:00
saschawillems
350e3d03a3
Fixed full-size viewport and scissor for UI
2018-08-30 21:02:10 +02:00
saschawillems
8a61105ec6
Reworked UI overlay class (no longer using separate render pass + submits)
...
Updated to support ImGui 1.62
Refs #496
2018-08-29 20:49:13 +02:00
saschawillems
1f42dbda61
No longer render if window is minimized (Windows)
...
Refs #493
2018-06-30 21:56:23 +02:00
saschawillems
5e552c0fea
Recreate swap chain (and resources) if it's out of date
...
Refs #493
2018-06-30 21:55:29 +02:00
saschawillems
19afba3f71
Base class wait fences
2018-06-03 09:38:14 +02:00
saschawillems
fa5d86e42b
Allow base class instance Vulkan version override
2018-06-01 18:43:24 +02:00
saschawillems
aa380791c8
Formatting
2018-06-01 18:43:24 +02:00
saschawillems
69dca89a02
Merge branch 'android_gradle'
2018-05-11 12:17:30 +02:00
saschawillems
5fe9f91529
Code cleanup, return and exit conditions for Android
2018-05-01 11:23:36 +02:00
Serhii Rieznik
5f5f29fa68
More correct way to enabled DPI awareness
2018-04-23 21:28:35 +03:00
Serhii Rieznik
df1c09235f
Enable DPI awareness on Windows platform
2018-04-23 20:56:47 +03:00
saschawillems
c918914bd4
Added support for per-example instance based extensions
2018-03-03 11:49:46 +01:00
saschawillems
ef15a265a7
Short-hand version of fullscreen parameter
2018-01-27 14:37:23 +01:00
saschawillems
df223f5b9b
Result (exit) codes for fatal terminations
2018-01-21 18:28:17 +01:00
saschawillems
90d7e09890
Removed compiler warning
2018-01-21 18:27:06 +01:00
saschawillems
4b0bb1a454
Silent error mode as global toggle
2018-01-21 10:58:30 +01:00