Commit graph

263 commits

Author SHA1 Message Date
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
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
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
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
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
Bill Hollings
2d515278e7 Support MoltenVK extension names in call to vkCreateInstance(). 2017-06-30 21:55:17 -04:00
Sascha Willems
b1da3e2cb1 Merge pull request #342 from brenwill/master
Add support for iOS and macOS via MoltenVK
2017-06-29 19:57:58 +02:00
Sascha Willems
40ba8f13cd Merge pull request #347 from aleksysokolowski-intel/master
Proper app termination after WM_QUIT
2017-06-29 19:20:16 +02:00
asokolow
ed207ab030 whitespace fix 2017-06-27 09:03:26 +02:00
asokolow
0cef15c0f2 According to MSDN PeekMessage returns false only when the message queue is empty. If there is another message after WM_QUIT, the part of the code responsible for proper closing of the application would never be triggered. This change handles WM_QUIT message properly. 2017-06-27 09:00:14 +02:00
Bill Hollings
108cdbc14c Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2017-06-22 14:55:11 -04:00
saschawillems
44c420940d Enable validation via define
refs #303
2017-06-15 11:27:49 +02:00
Bill Hollings
338d38ea9a Merge with upstream master 2017-06-05 17:04:14 -04:00
saschawillems
ba0cc82e50 Removed unused parameters for image layout transitions and shader loading (Refs #103) 2017-04-23 11:51:31 +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
saschawillems
7f1849f9bc Return nullptr if window creation fails 2017-04-22 11:47:34 +02:00
saschawillems
1912101fe8 Check swapchain acquire result and rebuild if necessary, error handling (refs #320) 2017-04-15 10:27:12 +02:00
Bill Hollings
626ab5803f Add support for iOS and macOS via MoltenVK. 2017-04-14 12:00:05 -04:00
saschawillems
bf82026295 Android touch double tap detection (Refs #173) [skip ci] 2017-03-25 11:51:32 +01:00
saschawillems
2accf02c1e Use explicit validation layer names on Android (no meta layer available) 2017-03-13 19:24:07 +01:00
saschawillems
82521aaafb Moved Android functions into separate namespace (vks::android) 2017-03-10 17:23:17 +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
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
saschawillems
133cb9afe2 Basic Android touch support (rotation only) (Refs #173) [skip ci] 2017-03-06 21:22:11 +01:00
saschawillems
c9d9c83617 Basic Android touch support (rotation only) (Refs #173) 2017-03-06 21:16:51 +01:00
Sascha Willems
fa9f0df469 Merge pull request #285 from tomek-brcm/null-handle
Use  VK_NULL_HANDLE for null shader module.
2017-02-16 17:49:21 +01:00
Tomek Bury
c32a131788 Use VK_NULL_HANDLE for null shader module.
The VkShaderModule is defined in vulkan.h as:
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)
2017-02-15 10:43:59 +00:00
Tomek Bury
b69f87d5c3 Don't wait for Wayland
This allows to run at full speed in MAILBOX mode.
2017-02-15 10:43:36 +00:00
saschawillems
1309ee0ef9 Moved tool functions to vks namespace (Refs #260) 2017-02-12 13:10:05 +01:00
saschawillems
132c2be990 Moved debug functions to vks namespace (Refs #260) 2017-02-12 11:33:04 +01:00
saschawillems
b31d773b93 Moved Initializers to vks namespce (Refs #260) 2017-02-12 11:12:42 +01:00
saschawillems
70f4daff5d Moved VulkanDevice to vks namespce (Refs #260) 2017-02-12 10:16:07 +01:00
saschawillems
7e43a55a76 Removed old mesh loader, replaced with new model loader and vertex layout class in all examples (Refs #260) 2017-02-11 14:18:24 +01:00
saschawillems
83ad186ce5 Removed old texture loader class [skip CI] 2017-02-09 21:51:10 +01:00
saschawillems
1c595c61e8 Enabled device extensions can now be set, display error message if device cannot be created 2017-02-09 19:22:48 +01:00
saschawillems
a77ea9053b Ensure all device operations have been finished before recreating resources on window resize (could cause validation errors in some example) 2017-02-04 15:58:46 +01:00
saschawillems
72af67420d Implemented command line device selection and gpu listing (Refs #129) 2017-02-04 13:52:41 +01:00
Tomek Bury
570d9bc6ee Add Wayland WSI support 2017-02-02 08:54:56 +00:00
saschawillems
d9cf65667b Check for existing asset path on example start (Refs #274) 2017-01-27 19:02:55 +01:00
saschawillems
9a59b24c8d Use swapchain colorformat instead of fixed format (Refs #238, Fixes #254) 2017-01-25 18:54:09 +01:00