Commit graph

1713 commits

Author SHA1 Message Date
Sascha Willems
7ef09ae2a8 Use correct image layout for descriptor
Fixes validation
2020-02-05 19:15:37 +01:00
Sascha Willems
fb45d1f741 Divide direction by w-component
Fixes #616
2020-01-24 10:04:31 +01:00
Sascha Willems
db1d12d77f Force minimum window size on Windows
Fixes #579
2020-01-24 09:52:26 +01:00
Sascha Willems
498066749d Removed unused usage flags on depth stencil image 2020-01-24 09:45:48 +01:00
Sascha Willems
ed3d771ce4 Removed unused usage flags on depth stencil image
Fixes #492
2020-01-24 09:39:44 +01:00
Sascha Willems
652fc3ab00 Code cleanup
Fixes #657
2020-01-24 09:16:52 +01:00
Sascha Willems
8acc59a2e1 Code cleanup
Fixes #593
2020-01-18 10:13:14 +01:00
Sascha Willems
e75f2ae739 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-01-18 10:03:09 +01:00
Sascha Willems
c28adea2f7 Code cleanup
Fixes #643
2020-01-18 10:02:55 +01:00
Sascha Willems
6bc9f95e5d
Merge pull request #652 from NotCamelCase/master
Fix uninitialized variable used in vkCmdCopyBufferToImage().
2020-01-18 09:45:09 +01:00
Sascha Willems
82ba6d8995
Merge pull request #650 from RenfengLiu/fix_validation_error
Fix the validation error for buffer copy
2020-01-18 09:42:04 +01:00
Sascha Willems
4ac729c60b Updated Vulkan headers to 1.2.131 2020-01-18 09:34:46 +01:00
Sascha Willems
339986642f
Merge pull request #634 from hevrard/triangle_present
Be robust to queuePresent returning VK_SUBOPTIMAL_KHR
2020-01-16 20:19:16 +01:00
Sascha Willems
5f83f558ab
Merge pull request #655 from hevrard/fix-build-android-computecloth
Fix Android build of computecloth demo
2020-01-16 20:16:47 +01:00
Hugues Evrard
4e48b38928 Fix Android build of computecloth demo
The NDK compiler currently fails with:

```
examples/computecloth/computecloth.cpp:71:23: error: cannot
initialize a member subobject of type 'VkSemaphore' (aka 'unsigned
long long') with an rvalue of type 'nullptr_t'
                          VkSemaphore ready{ nullptr };
```
2020-01-15 16:29:47 +00:00
Tayfun Kayhan
2843f4f03b Fix uninitialized variable used in vkCmdCopyBufferToImage(). 2020-01-10 13:28:56 +01:00
Sascha Willems
8668606a14
Merge pull request #651 from chrisforbes/fix-shader-interface-mismatch
Fix interface mismatch between VS and GS in deferredshadows
2020-01-08 19:49:30 +01:00
Chris Forbes
6c4b8727ef Fix interface mismatch between VS and GS in deferredshadows
GLSLang determines the content of the builtin block based on the shading
language version. In the case of 420 vs 450, the difference is whether
the gl_CullDistance member is present.

Vulkan requires that the builtin interface block be the same on both
sides of a shader interface not involving the fragment shader, so this
leads to undefined behavior. This is caught by recent versions of the
validation layers.

Fix the issue by using GLSL 450 for both shaders in the pipeline.
2020-01-07 18:27:13 -08:00
Robin Liu
5a6170e1e9 Fix the validation error for buffer copy 2020-01-07 17:23:50 -05:00
Sascha Willems
7a2dac7e30
Merge pull request #646 from jherico/computecloth
Fix validation and improve sync for computecloth
2020-01-06 20:27:01 +01:00
Sascha Willems
712ae27f87 Remove unused queue create info
Fixes #647
2020-01-06 20:25:02 +01:00
Sascha Willems
e30279fae5 Remove unnecessary assignment
Fixes #648
2020-01-06 20:07:09 +01:00
Brad Davis
e0b557606c Forcing tabs 2020-01-03 09:39:28 -08:00
Brad Davis
19f80fe423 Fix submit wait stages, support same family for graphics & compute 2020-01-03 09:25:24 -08:00
Brad Davis
055d90ea30 Fix validation and improve sync for computecloth 2020-01-02 13:04:03 -08:00
Sascha Willems
e18d428249
Merge pull request #580 from ardrabczyk/typo
Fix typo: Dsiplay->Display
2019-12-21 13:49:13 +01:00
Sascha Willems
bb3b336e53
Merge pull request #637 from SaschaWillems/libktx
Replace gli with libktx
2019-12-08 10:04:25 +01:00
Sascha Willems
af3ae38bd2 ktx loading fixes 2019-12-08 08:58:35 +01:00
Sascha Willems
3537d2cca2 Merge branch 'master' into libktx
# Conflicts:
#	examples/texturemipmapgen/texturemipmapgen.cpp
2019-12-07 16:04:45 +01:00
Sascha Willems
6d63dc32c3
Merge pull request #632 from chrisforbes/fix-displacement
Fix displacement sample blindly enabling BC compression feature
2019-12-05 20:18:57 +01:00
Sascha Willems
991f7953c4
Merge pull request #635 from liuhongyi0101/patch-3
Update ssao.frag
2019-12-05 20:18:06 +01:00
binary
6849c14ee4
Update ssao.frag
Sorry,It should be spelled bias
2019-12-03 19:06:56 +08:00
Sascha Willems
99fa99ff37 Added function for getting best-fit depth format to device
Refs #607
2019-12-01 18:13:22 +01:00
Sascha Willems
92dcc1d23a
Merge pull request #636 from RenfengLiu/poolsize
Fix the validation error that there's not enough descriptors left in the pool.
2019-12-01 17:14:52 +01:00
Robin Liu
6eefd7a5b6 Fix the validation error that there's not enough descriptors left in the pool. 2019-11-28 16:44:13 -05:00
binary
364c4695a9
Update ssao.frag
samplePos.z bias  can remove banding
2019-11-25 10:13:19 +08:00
Sascha Willems
144b58a253 Put image memory barrier in proper command buffer 2019-11-23 14:00:24 +01:00
Sascha Willems
9a727ccc43 Put image memory barrier in proper command buffer 2019-11-23 13:59:11 +01:00
Hugues Evrard
05bf2105f4 Be robust to queuePresent returning VK_SUBOPTIMAL_KHR 2019-11-20 18:42:30 -08:00
Chris Forbes
60a459552e Fix displacement sample blindly enabling BC compression feature 2019-11-20 17:34:01 -08:00
Sascha Willems
7086684979 Fix image memory barriers
Use proper stages and access masks
This fixes image memory barrier validation
Refs #631
2019-11-19 19:07:03 +01:00
Sascha Willems
39852c4a27 Use proper buffer sizes 2019-11-19 18:02:49 +01:00
Sascha Willems
f544895708 Use proper type for scratch buffer memory requirements
Explicitly set type for top and botom level AS memory requirements
Fixes #622
2019-11-09 10:47:31 +01:00
Sascha Willems
40c5e64faf Updated comments
Refs #622
2019-11-09 10:35:49 +01:00
Sascha Willems
e1e348ac7a Merge branch 'master' of github.com:SaschaWillems/Vulkan 2019-10-27 17:53:51 +01:00
Sascha Willems
526ed2da0e Simplified offscreen sample 2019-10-27 17:53:31 +01:00
Sascha Willems
27ab72d73f Merge branch 'master' into libktx 2019-10-27 16:38:52 +01:00
Sascha Willems
eddd724e7c Removed unused compute shader ubo members 2019-10-23 20:45:54 +02:00
Sascha Willems
b3214c521b Use VK_EXT_debug_utils instead of deprecated VK_EXT_debug_report for debugging 2019-10-18 20:51:46 +02:00
Sascha Willems
10129ee606 Uee new VK_LAYER_KHRONOS_validation layer on all platforms
Check if validation layer is actually present
2019-10-18 20:48:50 +02:00