Commit graph

456 commits

Author SHA1 Message Date
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
Sascha Willems
4be9e1bf38
Merge pull request #474 from elect86/master
Dead code
2018-08-26 09:53:23 +02:00
saschawillems
478aae0548 Allow override of target subpass for UI overlay 2018-07-15 21:13:32 +02:00
saschawillems
a1f166e001 Added basic input attachment sample 2018-07-15 18:18:41 +02:00
Stephen Gallimore
737e4d6bb1 Add missing flush in one of the buffer creation helpers.
Change-Id: I65356b64c227fd96a324349f583d183ce7e075de
2018-07-12 12:41:05 +01: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
a60fa850f4 Check against surface capability usage flags instead of format flags for setting additional swapchain usage flags 2018-06-02 11:31:25 +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
Sascha Willems
c76a9ffd3d
Merge pull request #471 from sergeyreznik/win32_dpi_aware
Enable DPI awareness on Windows platform
2018-05-06 09:19:50 +02:00
Giuseppe Barbieri
22b18a7708
Update VulkanTexture.hpp 2018-05-02 14:24:24 +02:00
saschawillems
5fe9f91529 Code cleanup, return and exit conditions for Android 2018-05-01 11:23:36 +02:00
saschawillems
5056563f5d Android alert display functionality using JNI 2018-04-30 22:24:45 +02:00
saschawillems
2d48a76138 Removed deprecated call to app_dummy 2018-04-29 11:54:29 +02:00
saschawillems
ee9043d956 Image layout assignment in linear tiling path
Fixes #472
2018-04-28 09:33:05 +02:00
Giuseppe Barbieri
df3a27db02
Update VulkanTexture.hpp 2018-04-27 10:26:33 +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
1b8343d67b General code cleanup
Fixes #442, Closes #379
2018-04-13 18:06:30 +02: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
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
5790f30c17 Fixed random seed when run in benchmark mode
Refs #269
2018-01-15 20:40:17 +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
4959985a17 Enable sampler anisotropy only if enabled on device 2018-01-05 20:47:27 +01:00
saschawillems
2c4dd77e9f Merge branch 'master' into develop 2017-12-11 22:16:23 +01:00
saschawillems
a3e3dd999f Error message and hint to asset pack if asset loading (model, texture) fails 2017-12-11 22:14:34 +01:00
saschawillems
f4281096ea Getter for near and far clip 2017-12-09 21:12:16 +01:00
JarredDavies
ebf0a34ae7 Request memory with VK_MEMORY_PROPERTY_HOST_COHERENT_BIT enabled for model staging buffers.
There is no guarantee in the spec on the order of the following memory types:
                VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_CACHED_BIT,
                VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
    which means we can't assume that the first memory type with VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT is going to be coherent.
2017-12-01 16:25:23 +00:00
saschawillems
1f1613a224 More consistent avg. frame time / fps count 2017-12-01 13:10:07 +01:00
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