Commit graph

416 commits

Author SHA1 Message Date
Jason Ekstrand
af8d280e42 VulkanUIOverlay: Use the correct initial layout
Using an initial layout of VK_IMAGE_LAYOUT_UNDEFINED together with
VK_ATTACHMENT_LOAD_OP_LOAD means that the render pass starts off with
completely undefined contents.  Since we want to draw the overlay on top
of the previously rendered image, we want to use a real layout.  Since
the calling code has already transitioned to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
that's the layout we need to use.

This was never caught by validation because VK_IMAGE_LAYOUT_UNDEFINED is
the one layout you're allowed to use as an initial layout at any time
regardless of the image's current layout.
2017-11-21 17:31:35 -08:00
saschawillems
0588108e64 Enabled exceptions on android 2017-11-10 22:17:03 +01:00
saschawillems
0a78d4d2a0 Debug message callback calling conventions 2017-11-04 15:48:51 +01:00
saschawillems
c77a1ba715 Removed key dummy codes for android 2017-11-04 10:33:55 +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
a5e2ad091f Release ui overlay Vulkan resources 2017-11-01 15:18:46 +01:00
saschawillems
570750c16f return value float slider 2017-11-01 14:12:14 +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
853b318848 UI scale, combo box dropdown item count 2017-10-31 23:09:42 +01:00
saschawillems
cb97e20529 Removed duplicate swapchain initialization on android 2017-10-31 12:51:55 +01:00
saschawillems
bf2cf898cc Check ImGui mousecapture and don't propagate event 2017-10-31 11:53:17 +01:00
saschawillems
3b11701eb2 Additional UI overlay widget creation functions 2017-10-31 11:52:48 +01:00
saschawillems
0907e3c680 Overlay setting member name 2017-10-30 18:03:48 +01:00
saschawillems
287a9b5762 UI overlay float slider 2017-10-30 18:02:51 +01:00
saschawillems
15f85d6e10 Designated UI overlay widget creation functions (wrapping ImGui calls) 2017-10-30 12:37:36 +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
4a1876b023 Also check against TRANSFER_SRC format flag to enable swap chain image usage flag 2017-10-09 20:07:16 +02:00
Wladimir J. van der Laan
1ed282d2ee base: Check for swapchain blit source feature instead of destination
As I understand it the goal is to use the swapchain image as a transfer
source (for taking screenshots), not as a transfer destination.
2017-10-09 15:47:50 +02:00
saschawillems
83d1dd63aa Changed mouse button handling, added mouse moved event 2017-10-05 21:22:10 +02:00
saschawillems
cd8274c294 glm matrix initialization 2017-09-24 18:17:07 +02:00
Sascha Willems
a3b8534e5f Merge pull request #352 from jku/install
Support installing demos, support out-of-tree builds
2017-09-02 14:02:34 +02:00
saschawillems
107db7d244 Reworked benchmark code, store per frame times (instead of iteration totals)
Refs #269
2017-08-28 20:48:52 +02:00
saschawillems
b42d0edb3b Removed benchmark constructor 2017-08-26 20:17:34 +02:00
saschawillems
c855a82a46 Small benchmark mode tweaks and fixes 2017-08-26 16:08:16 +02:00
saschawillems
d271098464 Silent error mode 2017-08-26 15:05:59 +02:00
saschawillems
b4870a6e7e Moved benchmark to separate header, output summary to stdout
Refs #269
2017-08-26 14:05:48 +02:00
saschawillems
0142c8b820 Add device name to benchmark output file 2017-08-22 21:00:48 +02:00
saschawillems
c2aef7809f Merge branch 'master' into develop 2017-08-22 18:56:05 +02:00
saschawillems
2020c9548f Static shared library 2017-08-19 10:53:28 +02:00
saschawillems
ac7d7396c2 Include required libraries in shared base (fixes gcc on windows) 2017-08-19 10:49:37 +02:00
Jean-Philippe Bruyère
977f0318b7 make base as library 2017-08-17 20:50:28 +02:00
saschawillems
0038e19345 Merge branch 'master' into develop 2017-08-17 19:07:48 +02:00
Sascha Willems
ed1134d6d2 Merge pull request #366 from mnstrmnch/master
Added support for VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR for D2D
2017-08-16 22:08:57 +02:00
saschawillems
22a24e508d Merge branch 'master' into develop 2017-08-16 21:15:52 +02:00
saschawillems
c04909f01b LoadOp clear for stencil buffer 2017-08-16 21:00:17 +02:00
Peter Quayle
9f0829336c Added support for VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR for the D2D swapchain. 2017-08-15 17:07:16 +01: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
Jussi Kukkonen
7798901a46 Support installing demos, support out-of-tree builds
This is especially useful for cross-compile situation where testing
happens on target.

-DRESOURCE_INSTALL_DIR=<path> decides where data is installed (and
where the binaries will load the data from): if it's left empty,
then nothing will be installed and binaries will load the data from
CMAKE_SOURCE_DIR.

Binaries are now correctly built in CMAKE_BINARY_DIR.
2017-07-04 18:12:04 +03:00
saschawillems
fd439a59e2 Code cleanup, use VK_USE_PLATFORM_ defines where available 2017-07-02 11:57:47 +02:00