Commit graph

1651 commits

Author SHA1 Message Date
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
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
Sascha Willems
01bf10f9a8 Uee new VK_LAYER_KHRONOS_validation layer on all platforms
Check if validation layer is actually present
2019-10-18 20:28:54 +02:00
Sascha Willems
0356b62f81 Updated Vulkan headers to 1.1.125 2019-10-18 15:58:29 +02:00
Sascha Willems
0e9ab19fad Reworked compute shader n-body synchronization 2019-10-13 09:40:31 +02:00
Sascha Willems
958f0cb65e
Merge pull request #609 from chrisforbes/shader-recompile
Recompile shaders with more modern glslang
2019-10-10 21:19:30 +02:00
Sascha Willems
ca17e35964 Don't use precise query control flag for statistic queries
Fixes ##600
2019-09-11 20:49:31 +02:00
Sascha Willems
ee354a2fbe Updated Android build instructions 2019-09-06 20:42:05 +02:00
Sascha Willems
36bf3dd31a Removed remaining dds files
All textures are now loaded from ktx
2019-09-06 19:18:15 +02:00
Sascha Willems
90c1cb85f8
Merge pull request #611 from chrisforbes/bug_610
Only use anisotropic sampling if the device supports it
2019-09-06 17:33:13 +02:00
Sascha Willems
ec9f2243e6
Merge pull request #606 from chrisforbes/bug_605
multisampling: only build the per-sample pipeline if the device supports it
2019-09-06 17:28:43 +02:00
Chris Forbes
7ea3fb5e2d Only use anisotropic sampling if the device supports it
Fixes #610
2019-09-06 10:47:10 +01:00
Chris Forbes
a05d90c221 Recompile shaders with more modern glslang
The SPIRV previously checked in had various issues -- most commonly, it
would use the VertexId and InstanceId builtins rather than the
replacmenet VertexIndex and InstanceIndex builtins required by Vulkan.
2019-09-06 09:59:45 +01:00
Chris Forbes
197671b586 multisampling: only build the per-sample pipeline if the device supports it
Bug: #605
2019-09-05 22:29:30 +01:00
Sascha Willems
2f985f2aae Fixed some compiler warnings 2019-08-18 18:33:16 +02:00
Sascha Willems
c3f1692486 Updated Android build filed for Gradle 5.x
Fixes #597
2019-08-04 13:48:09 +02:00
Sascha Willems
70cfb3e756
Merge pull request #596 from jmacnak-nv/master
Fix a couple of small errors in ray tracing examples
2019-07-28 11:48:35 +02:00
Jason Macnak
6ead6171a7 Fix a couple of small errors in ray tracing examples
nv_ray_tracing_basic.cpp
 - update to 3 component vertex data (4 component isn't supported)
 - update type to TOP_LEVEL when building the TLAS

nv_ray_tracing_reflections.cpp
 - update AS info type to TOP_LEVEL when building the TLAS

nv_ray_tracing_shadows.cpp
 - update AS info type to TOP_LEVEL when building the TLAS

Validation layer changes coming soon :)
2019-07-26 16:31:19 -07:00
Sascha Willems
2a5d7df56e
Merge pull request #585 from tntljc/master
Fix some synchronization flaws
2019-06-22 10:00:09 +02:00
JC Liang
b575a1ff1a Fix some synchronization flaws
- shader: add barrier at the end of each iteration to avoid writing before the reading finished
- cpp: add synchronization between compute and graphics, the image barrier is not enough for the data visibility between different submission

	modified:   data/shaders/computenbody/particle_calculate.comp
	modified:   data/shaders/computenbody/particle_calculate.comp.spv
	modified:   examples/computenbody/computenbody.cpp
2019-06-17 19:31:00 +08:00
Sascha Willems
10a908d20f Started work on descriptor indexing example
Refs #583
2019-06-10 13:07:48 +02:00
Sascha Willems
4318c6d43e Added new functionality for passing extension structures to device creation 2019-06-10 08:46:11 +02:00
Sascha Willems
b2add91d2c Renamed compute shader ray tracing example 2019-05-11 12:41:46 +02:00
Sascha Willems
4326ce390d Add compute shaders (CMake) 2019-05-11 12:37:07 +02:00
Sascha Willems
b9bf2bca85 Replace dedicated offscreen command buffer and complicated synchronization with single command buffer and sync via sub pass dependencies 2019-05-11 12:16:28 +02:00
Sascha Willems
3ff0da9aa8 Merge branch 'master' of github.com:SaschaWillems/Vulkan 2019-05-05 14:19:03 +02:00
Sascha Willems
eb39c1b8ac Removed deprecated function
Refs #576
2019-05-05 14:18:35 +02:00
Sascha Willems
a88b96ac0c
Merge pull request #568 from itrainl4/patch-negativeviewportheight
Fix incorrect VkDescriptorPoolSize in negativeviewportheight.
2019-04-30 21:23:35 +02:00
Sascha Willems
4b71da8049 Removed unused shader payload 2019-04-27 13:00:12 +02:00
Sascha Willems
667d682fb5 Removed unused code 2019-04-27 12:46:48 +02:00
Sascha Willems
7b19929c5c Added VK_NV_ray_tracing examples to the readme 2019-04-27 11:22:27 +02:00
Sascha Willems
7501d110af Added advanced ray tracing examples to the cmake list 2019-04-27 11:08:29 +02:00
Sascha Willems
8fdabb0019 Added VK_NV_ray_tracing reflections example 2019-04-27 11:05:29 +02:00
Sascha Willems
e140095002 Pass VK_NULL_HANDLE instead of nullptr for pipeline cache 2019-04-26 17:45:38 +02:00
Sascha Willems
5011d7afae Storage usage flags for scene 2019-04-23 08:16:35 +02:00
Sascha Willems
00982b70bb Added option for passing additional vertex/index buffer memory usage flags for loading models
Removed unused optional assimp flags
2019-04-23 08:15:23 +02:00
Soowan Park
7c34859bb6 Fix incorrect VkDescriptorPoolSize in negativeviewportheight.
There is assertion fail in negativeviewportheight (AMD GPU). The example create two VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER for descriptorSet, but descriptorCount is one in descriptorPool.
2019-04-22 17:53:28 -04:00
Sascha Willems
a1b21f6990 Added VK_NV_ray_tracing shadow casting example 2019-04-22 18:49:38 +02:00
Sascha Willems
a12af1718a Code cleanup 2019-04-22 18:42:41 +02:00
Sascha Willems
5f31c40898 Default constructor argument 2019-04-22 18:29:24 +02:00
Sascha Willems
6a73419f38 Added support for Turing Shader extensions to CMake example build function 2019-04-22 17:47:22 +02:00
Sascha Willems
f04b7217bb Code cleanup (variable shadowing) 2019-04-21 18:13:22 +02:00