Commit graph

395 commits

Author SHA1 Message Date
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
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
Bill Hollings
96601494d5 Updates to iOS and macOS functionality using MoltenVK.
Use getAssetPath() instead of ASSET_PATH to support broader range of platforms.
Multisampling example determines sample rate from device at runtime.
Move example wrapper code from DemoViewController.mm to dedicated MVKExample.cpp file.
Remove AssImp libraries for iOS and macOS from repo, and add instructions for
generating them from AssImp source files.
Update general README.md file to mention support for iOS and macOS platforms.
Add Apple logo for README.md.
Update Vulkan logo to current registered TM logo.
Update copyright notice of MoltenVK example files to MIT license.
Examples use +/- on main keyboard, instead of numpad.
2017-06-22 14:53:49 -04:00
saschawillems
55da334ba1 Set sampler max. anisotropy to 1.0f instead of 0.0f (valdidation)
Refs #277
2017-06-17 16:07:38 +02:00
saschawillems
44c420940d Enable validation via define
refs #303
2017-06-15 11:27:49 +02:00
saschawillems
60721b71e1 Check if anisotropy is enabled (Fixes #336, Refs #277) 2017-06-14 23:39:41 +02:00
saschawillems
2027f84d45 Store enabled features in device class 2017-06-14 23:38:57 +02:00
Bill Hollings
338d38ea9a Merge with upstream master 2017-06-05 17:04:14 -04:00
Bill Hollings
6ba784053b Add keyboard support for iOS and macOS under MoltenVK. 2017-06-05 16:26:29 -04:00
saschawillems
904d785c20 Set maxAnisotropy to 1.0f instead of 0.0f (Fixes validation errors, refs #277) 2017-06-01 22:32:39 +02: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
ba0cc82e50 Removed unused parameters for image layout transitions and shader loading (Refs #103) 2017-04-23 11:51:31 +02:00
saschawillems
549f49ff77 Default route for image layout switch statements (fixes gcc compiler warnings, refs #103) 2017-04-22 20:39:16 +02:00
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
saschawillems
7f1849f9bc Return nullptr if window creation fails 2017-04-22 11:47:34 +02:00