Commit graph

217 commits

Author SHA1 Message Date
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
saschawillems
f252284fa5 Output device info, benchmark result file optional
Refs #269
2018-01-19 21:43:00 +01:00
saschawillems
cb32e2e89f Separated benchmark argument line options
Refs #269
2018-01-13 10:39:03 +01:00
saschawillems
39122785a8 Duration based benchmarking (instead of no. of iterations), better argument handling
refs #269
2018-01-12 21:54:01 +01:00
saschawillems
30980623af Device creation failure error message display 2018-01-09 20:22:09 +01:00
saschawillems
1f1613a224 More consistent avg. frame time / fps count 2017-12-01 13:10:07 +01:00
saschawillems
b7d2dbced4 Pass updated frame buffers on resize 2017-11-03 16:35:38 +01:00
saschawillems
4e5d95c098 UI overlay creation via create info structure with additional customization options 2017-11-03 11:17:09 +01:00
saschawillems
a789240567 Merge branch 'master' into uioverlay 2017-11-02 17:13:12 +01:00
saschawillems
5795a77e7b Android UI overlay touch handling 2017-11-02 17:07:07 +01:00
saschawillems
97975a314d Unified mouse movement handling 2017-11-02 13:40:27 +01:00
saschawillems
09dae4ee0b UI item spacing on Android 2017-11-02 09:08:47 +01:00
saschawillems
2f9515466a UI overlay resizing 2017-11-01 15:19:28 +01:00
saschawillems
ef96b3c3e3 Member naming 2017-11-01 13:40:44 +01:00
saschawillems
00f080c046 UpdateOverlay function calls on unix platforms 2017-11-01 13:29:57 +01:00
saschawillems
cb97e20529 Removed duplicate swapchain initialization on android 2017-10-31 12:51:55 +01:00