Commit graph

1364 commits

Author SHA1 Message Date
saschawillems
9898e67f41 Compute buffer barrier pipeline flags (validation) 2017-07-09 12:36:56 +02:00
saschawillems
f383849c24 Calculate normals only on last iteration 2017-07-09 12:28:03 +02:00
saschawillems
db2aee7535 Toggle wind simulation 2017-07-09 11:59:28 +02:00
saschawillems
a55759b31b Compute shader cloth simulation 2017-07-09 11:39:10 +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
saschawillems
18df00c7b4 Add shaders as filters to examples (visual studios) 2017-07-01 13:28:31 +02:00
Sascha Willems
6c42abcfe3 Merge pull request #349 from brenwill/master
Support MoltenVK extension names in call to vkCreateInstance().
2017-07-01 10:38:29 +02:00
Bill Hollings
2d515278e7 Support MoltenVK extension names in call to vkCreateInstance(). 2017-06-30 21:55:17 -04:00
saschawillems
cdd73d0439 Initial camera position 2017-06-30 11:00:04 +02: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
Sascha Willems
ea726e617f Merge pull request #346 from Piasy/master
Fix Android install script issue:
2017-06-26 19:37:19 +02:00
Piasy
7e2787413b Fix Android install script issue:
1. FileNotFoundError:

``` bash
Traceback (most recent call last):
  File "install-all.py", line 11, in <module>
    if subprocess.call("python build-all.py -deploy %s" % BUILD_ARGUMENTS) != 0:
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 1326, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'python build-all.py -deploy '
```

2. KeyError:

``` bash
Traceback (most recent call last):
  File "build.py", line 46, in <module>
    if "additional" in EXAMPLE_JSON["assets"]:
KeyError: 'assets'
```
2017-06-26 14:04:31 +08:00
Bill Hollings
34ede255a9 Remove use of unportable fls() function from multisampling.cpp. 2017-06-22 17:55:57 -04:00
Bill Hollings
bc8c47bd62 Fix <strings.h> include statement in multisampling.cpp. 2017-06-22 16:46:08 -04: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
Sascha Willems
3d3cf9f31c Merge pull request #344 from voidstorm/master
Fixed Rendering bug in viewport arrays example #332
2017-06-20 21:00:06 +02:00
voidstorm
3e95e76cee Fixed Rendering bug in viewport arrays example #332 2017-06-19 22:32:09 +02: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
f447047913 Update notes on android builds, added info about validation layer builds
(Refs #303)
2017-06-17 11:32:20 +02:00
saschawillems
e0d2fd5ff4 Removed old python build scripts, replaced with json example definition files 2017-06-17 11:31:28 +02:00
saschawillems
6218942a19 Wildcard copy for additional assets (android build script) 2017-06-17 11:29:30 +02:00
saschawillems
83d4887b93 Wildcard copy for additional assets (android build script) 2017-06-17 10:28:29 +02:00
saschawillems
763e927eee Merge branch 'master' into develop 2017-06-16 21:57:27 +02:00
saschawillems
fa00daac41 Removed unnecessary preserve attachment and shader attachment writes (fixes validation) 2017-06-16 21:44:53 +02:00
saschawillems
7ef4e1eb06 Removed old python build scripts, replaced with json example definition files 2017-06-16 21:21:55 +02:00
saschawillems
b5a733b502 Removed old python build scripts, replaced with json example definition files 2017-06-15 11:40:05 +02:00
saschawillems
3064aef33c Enable required device features for instancing example 2017-06-15 11:28:12 +02:00
saschawillems
44c420940d Enable validation via define
refs #303
2017-06-15 11:27:49 +02:00
saschawillems
50e28c0bba Moved shaders for triangle example into separate directory 2017-06-15 11:25:06 +02:00
saschawillems
9065df9a7a Reworked single android python build script with validation layer support to be used for all example builds
refs  #297, refs #303
2017-06-15 10:39:59 +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
saschawillems
13d6076a5f Readme formatting, typos 2017-06-11 12:41:45 +02:00
saschawillems
a57a2266b4 gitignore 2017-06-11 12:32:22 +02:00
saschawillems
9cc2ba36c1 Added PBR samples to readme 2017-06-11 12:29:40 +02:00
saschawillems
230a70cf4b PBR examples minor tweaks and updated screenshots 2017-06-11 11:06:26 +02:00
saschawillems
4094aa0ea0 Enable required device features (validation) (Refs #277) 2017-06-07 22:44:29 +02:00
saschawillems
153e555447 Enable multiDrawIndirect if supported (Refs #277) 2017-06-06 21:14:21 +02:00
Bill Hollings
8b30d7b5fd Test iOS and macOS support under MoltenVK. 2017-06-05 17:35:30 -04: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
saschawillems
a6ddaf3996 Changed sub pass dependencies for offscreen pass (Fixes #335) 2017-06-01 22:13:38 +02:00
saschawillems
aa20f2aa26 Proper image layout in descriptor, enable anisotropic filtering (refs #277) 2017-06-01 21:56:20 +02:00
saschawillems
0b8484b21d Don't exit if anisotropic filtering is not supported 2017-06-01 21:51:43 +02:00