Commit graph

133 commits

Author SHA1 Message Date
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
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
0ca5f41308 Added missing include 2020-04-19 10:11:50 +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
4318c6d43e Added new functionality for passing extension structures to device creation 2019-06-10 08:46:11 +02:00
Sascha Willems
5f31c40898 Default constructor argument 2019-04-22 18:29:24 +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
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
69c3f62b9a Streamlined UI overlay, code cleanup
Refs #496
2018-08-31 21:15:43 +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
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
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
saschawillems
2d48a76138 Removed deprecated call to app_dummy 2018-04-29 11:54:29 +02:00
Serhii Rieznik
5f5f29fa68 More correct way to enabled DPI awareness 2018-04-23 21:28:35 +03:00
saschawillems
f5ba1e8939 Public updated property for camera class 2018-04-08 12:27:45 +02:00
saschawillems
c918914bd4 Added support for per-example instance based extensions 2018-03-03 11:49:46 +01:00
saschawillems
5790f30c17 Fixed random seed when run in benchmark mode
Refs #269
2018-01-15 20:40:17 +01:00
saschawillems
4e5d95c098 UI overlay creation via create info structure with additional customization options 2017-11-03 11:17:09 +01:00
saschawillems
97975a314d Unified mouse movement handling 2017-11-02 13:40:27 +01:00
saschawillems
ef96b3c3e3 Member naming 2017-11-01 13:40:44 +01:00
saschawillems
ab407f5346 pass overlay member to virtual update function 2017-10-30 12:36:44 +01:00
saschawillems
f6af0bde03 Replaced text overlay with proper (imgui based) UI overlay class 2017-10-29 11:41:43 +01:00
saschawillems
19245a0f51 Moved swapchain creation into prepare function 2017-10-21 16:51:39 +02:00
saschawillems
83d1dd63aa Changed mouse button handling, added mouse moved event 2017-10-05 21:22:10 +02:00
saschawillems
b4870a6e7e Moved benchmark to separate header, output summary to stdout
Refs #269
2017-08-26 14:05:48 +02:00
saschawillems
94b63d83ba Filename for benchmark results can be passed via arguments
refs #269
2017-08-13 11:10:41 +02:00
saschawillems
55fe613db3 Cleaned up defines (use VK_PLATFORM_* for XCB and Android) 2017-08-13 10:24:25 +02:00
saschawillems
b2136e639f Benchmark mode with csv output
refs #269
2017-07-29 19:31:00 +02:00
Bill Hollings
338d38ea9a Merge with upstream master 2017-06-05 17:04:14 -04:00
cksingamala
aaade7e831 Fixed build failed for _DIRECT2DISPLAY
for _DIRECT2DISPLAY it should not depended on xcb.
fixed by adding macro switch
2017-05-26 11:37:47 +05:30
saschawillems
c024d521e3 Virtual base class destructor (Fixed #96, refs #103) 2017-04-22 20:30:06 +02:00
saschawillems
95e124ea83 Code cleanup (fixes compiler warnings, refs #103) 2017-04-22 16:54:25 +02:00
saschawillems
39824db3e6 Removed parameter names from empty virtual functions (fixes compiler warnings, refs #103) 2017-04-22 16:02:39 +02:00
Bill Hollings
626ab5803f Add support for iOS and macOS via MoltenVK. 2017-04-14 12:00:05 -04:00
saschawillems
c849d18db3 Added imgui example Android build 2017-03-31 09:52:26 +02:00
saschawillems
ccfc1f1124 Add imgui example (wip) 2017-03-30 19:27:57 +02:00
saschawillems
550d12bdd9 File name capitalization 2017-03-25 12:09:45 +01:00
saschawillems
9edc993bf9 Read android config values [skip ci] 2017-03-25 11:15:30 +01:00
saschawillems
83806a43c2 Virtual function for enabling features for the logical device creation (called after physical device features have been read) 2017-03-08 21:29:38 +01:00
saschawillems
7d7ef490c2 Changed header file name capitalization 2017-03-07 22:00:46 +01:00
saschawillems
e08855dc9e Changed header file name capitalization 2017-03-07 21:58:39 +01:00
saschawillems
2eb9b14cc2 Added basic Android touch movement (Refs #173) 2017-03-06 22:11:19 +01:00
saschawillems
143c1c3aac Retrieve and display Android product model and manufacturer in text overlay [skip ci] 2017-03-06 21:54:06 +01:00