Commit graph

368 commits

Author SHA1 Message Date
saschawillems
c04909f01b LoadOp clear for stencil buffer 2017-08-16 21:00:17 +02: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
saschawillems
486a6a94c0 image memory barrier access masks (validation) [skip ci] 2017-04-20 21:16:48 +02:00
saschawillems
44bcac9be3 Initialize buffer and memory with VK_NULL_HANDLE 2017-04-16 13:39:36 +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
b399fed33b Check if file to load texture from exists, display error if not 2017-04-13 22:11:00 +02:00
saschawillems
cfcd34498a Use macro fro asset path 2017-04-03 20:10:39 +02: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
eded1560a2 Initialize sampler create info with maxAnisotropy of 1.0f (Validation) [skip ci] 2017-03-26 15:11:02 +02:00
Sascha Willems
068da006eb Merge pull request #305 from ilgrad/master
fix error build
2017-03-25 14:26:54 +01:00
saschawillems
550d12bdd9 File name capitalization 2017-03-25 12:09:45 +01:00
saschawillems
b6c268c52b Touch keycode 2017-03-25 12:07:17 +01:00
saschawillems
bf82026295 Android touch double tap detection (Refs #173) [skip ci] 2017-03-25 11:51:32 +01:00
saschawillems
9edc993bf9 Read android config values [skip ci] 2017-03-25 11:15:30 +01:00
Ilya Gradina
e209dd4cb0 fix error build
add "#include <functional>" , because  -  error: ‘function’ is not a member of ‘std’
2017-03-18 19:30:26 +03:00
saschawillems
5443c01f07 Compoiste alpha flag selection based on device support 2017-03-13 19:54:37 +01:00
saschawillems
de79a0d79a Removed VK_LAYER_LUNARG_image (Android) [skip ci] 2017-03-13 19:32:23 +01:00
saschawillems
2accf02c1e Use explicit validation layer names on Android (no meta layer available) 2017-03-13 19:24:07 +01:00
saschawillems
418f4e2875 Output validation layer messages to logcat (Android) 2017-03-12 17:46:50 +01:00
saschawillems
8b6cdf4e95 Scale text overlay based on Android display DPI 2017-03-10 17:52:53 +01:00
saschawillems
82521aaafb Moved Android functions into separate namespace (vks::android) 2017-03-10 17:23:17 +01:00
saschawillems
a57c8931e5 Log android error if model couldn't be loaded from asset manager 2017-03-09 20:00:55 +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
f71fb107fc Added font scaling factor to text overlay class 2017-03-07 21:51:56 +01:00
saschawillems
03b671562b Output fatal errors to logcat (Android) [skip ci] 2017-03-07 20:51:48 +01:00