Commit graph

2379 commits

Author SHA1 Message Date
Sascha Willems
ca17431794
Merge pull request #797 from caramelli/master
Fix long options for width and height
2021-01-28 19:39:49 +01:00
Sascha Willems
6994d17448
Merge pull request #791 from diharaw/variable_descriptor_validation
Added descriptorindexing sample to CMake and fixed variable descriptor size validation errors
2021-01-28 19:31:05 +01:00
Sascha Willems
fa54451709
Merge pull request #802 from jeromenxp/move_extension_name_declaration
Change scope of validationExt and validationLayerName variables
2021-01-28 19:30:40 +01:00
jeromenxp
1b22456d07 Change scope of validationExt and validationLayerName variables
Pointer to a variable declared into a block statement is stored and used outside of the block by vkCreateInstance. This can lead to segmentation fault.
Move the declaration of validationExt/validationLayerName outside of the block to fix the crash.
2021-01-18 17:41:41 +01:00
Sascha Willems
334692a6ef Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2021-01-17 20:08:55 +01:00
Sascha Willems
1042f76071 Fixed comments 2021-01-17 20:08:49 +01:00
Sascha Willems
3cd37f622b
GitHub actions (#799)
* switchting to github actions
2021-01-15 21:15:16 +01:00
Sascha Willems
3101a523d6
Merge pull request #798 from baryluk/patch-2
Add VK_PHYSICAL_DEVICE_TYPE_CPU to string
2021-01-11 20:13:19 +01:00
Sascha Willems
336a40ec7f
Merge pull request #796 from tkeri/missing_android_gltf
Add missing gltf assets to 'build.gradle'
2021-01-08 12:57:37 +01:00
Witold Baryluk
be24a9c583
Add VK_PHYSICAL_DEVICE_TYPE_CPU to string 2021-01-07 19:54:33 +00:00
Nicolas Caramelli
9f00c24388 Fix long options for width and height 2021-01-07 17:05:42 +01:00
Tamas Keri
f5d4cce55e Add missing gltf assets to 'build.gradle'
Vulkan applications: displacement, particlefire, pushconstants.
2021-01-07 12:48:41 +01:00
Connor Haskins
750a37f633
Remove unnecessary comparison
It is not possible for swapchainPresentMode to ever be VK_PRESENT_MODE_MAILBOX_KHR given the break in the above if block
2020-12-20 01:17:40 -08:00
diharaw
78940988b9 Replace core VkDescriptorSetVariableDescriptorCountAllocateInfo structure with EXT version. 2020-12-16 10:51:27 +00:00
diharaw
4a11ae0c5a Added descriptorindexing sample to CMake.
Fixed variable descriptor size validation error.
2020-12-16 10:40:23 +00:00
Jakub Kuderski
a53721f0dc [NFC] Fix clang warnings
Resolves the following clang-10 compiler warnings:

```
$ ninja
[65/177] Building CXX object examples/CMakeFiles/oit.dir/oit/oit.cpp.o
../examples/oit/oit.cpp:501:7: warning: 'buildCommandBuffers' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
        void buildCommandBuffers()
             ^
../base/vulkanexamplebase.h:351:15: note: overridden virtual function is here
        virtual void buildCommandBuffers();
                     ^
1 warning generated.
[78/177] Building CXX object examples/CMakeFiles/inlineuniformblocks.dir/inlineuniformblocks/inlineuniformblocks.cpp.o
../examples/inlineuniformblocks/inlineuniformblocks.cpp:19:27: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
        return ((float)rand() / (RAND_MAX));
                              ~  ^~~~~~~~
/usr/include/stdlib.h:86:18: note: expanded from macro 'RAND_MAX'
                        ^~~~~~~~~~
1 warning generated.
[84/177] Building CXX object examples/CMakeFiles/pushconstants.dir/pushconstants/pushconstants.cpp.o
../examples/pushconstants/pushconstants.cpp:24:28: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
        return ((float) rand() / (RAND_MAX));
                               ~  ^~~~~~~~
/usr/include/stdlib.h:86:18: note: expanded from macro 'RAND_MAX'
                        ^~~~~~~~~~
```
2020-12-14 16:44:23 -05:00
Sascha Willems
846413cc4b Release resources, fixes validation
Scene setup
2020-12-12 08:40:28 +01:00
Sascha Willems
3cf8fb81e3 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-12-12 08:21:10 +01:00
Sascha Willems
a369e6ed96 Apply shader group handle alignment where required
Fixes #787
2020-12-12 08:20:33 +01:00
Sascha Willems
6000569cd0
Merge pull request #785 from kuhar/pragma
Don't use pragma once in .cpp file
2020-12-09 07:00:23 +01:00
Jakub Kuderski
66a4f5af22 Don't use pragma once in .cpp file
Fix a compiler warning.
2020-12-04 15:02:18 -05:00
michead
8eeb6599d6 render depth to cubemap faces directly 2020-11-28 11:35:18 +00:00
Sascha Willems
21f9cd5251 Fixed typos, better sample descriptions 2020-11-27 21:01:46 +01:00
Andreas Streichardt
b4cf84a06e 📝 use gradlew 2020-11-26 07:38:06 +01:00
Sascha Willems
da2f5d81a4
Merge pull request #779 from SaschaWillems/ray_tracing_final
Update to final ray tracing extensions
2020-11-23 12:52:15 +01:00
Sascha Willems
f79c9705b4 Added samples for ray queries and callable ray tracing shaders 2020-11-23 12:25:49 +01:00
Sascha Willems
08be260685 Updated ray tracing samples to final ray tracing extensions 2020-11-23 12:15:57 +01:00
Sascha Willems
02a9be4c62 Updated to Vulkan headers 1.2.162 2020-11-23 12:14:35 +01:00
Philip Rideout
6e2c1a3a6b
Update CMakeLists.txt (#770)
This fixes the build errors that look like:

    source file is not valid UTF-8

This was due to CMake adding object files to the command line after the `-x` argument, which caused them to be interpreted as Objective C++ source code.
2020-11-18 09:17:20 +01:00
Sascha Willems
400d9bd8a3 Remove unnecessary shader group type 2020-11-17 20:44:19 +01:00
Sascha Willems
33313952aa Use KHR struct instead of NV 2020-11-14 15:21:49 +01:00
Sascha Willems
b9f0ac91d2 Optimizations and code-cleanup
Fixes #767
2020-10-09 11:07:19 +02:00
Sascha Willems
ab10ce1693 Updated GLSL shader compile script 2020-09-21 07:34:04 +02:00
Sascha Willems
5418a75799 OpenMP 2020-09-17 14:06:21 +02:00
Sascha Willems
5b357931ec Enable OpenMP
Use proper loop variable types
Fixes #759
2020-09-17 13:55:26 +02:00
Sascha Willems
3cb3df4cbf Merge branch 'variable_rate_shading' 2020-09-13 10:28:03 +02:00
Nicolas Caramelli
c13a715ead
Add DirectFB WSI support (#761) 2020-09-13 10:12:33 +02:00
Sascha Willems
07970bb1e3 Proper cleanup 2020-09-12 13:06:39 +02:00
Sascha Willems
144c0b66c0 Create empty texture to be used with materials that miss e.g. normal maps 2020-09-12 12:48:26 +02:00
Sascha Willems
9aea7d1550 Added VRS sample to readme 2020-09-12 12:16:31 +02:00
Sascha Willems
9a6a0b30b0 Added VRS HLSL shaders
Color coding doesn't work properly, as shading rate values don't seem to match with GLSL or DX12 specs
2020-09-12 09:36:28 +02:00
Sascha Willems
08648a417f Properly handle resize 2020-09-11 20:57:06 +02:00
daemyung jang
ad6e36023f
Run on MacOS (#762)
* Run on MacOS

* Update BUILD.md
2020-09-11 20:19:28 +02:00
Sascha Willems
3643d10cac Fix shading rate image dimensions for resolutions that don't divide by shadingRateTexelSize 2020-09-06 17:05:38 +02:00
Sascha Willems
ccadcdd238 Shading rate pattern and colorization 2020-09-05 14:10:02 +02:00
Sascha Willems
8d896cd04b Separate oaque and masked pipelines 2020-09-05 12:15:54 +02:00
Sascha Willems
85bf87125b Added additional flags for binding texture maps and only rendering opaque/masked/blended meshes 2020-09-05 12:12:47 +02:00
Sascha Willems
d9612098a7 Add toggle for shading rate 2020-09-04 09:26:30 +02:00
Sascha Willems
14aebeddbb Toggle for shading rate pattern color visualization 2020-09-02 20:07:37 +02:00
Sascha Willems
236595c940 Proper shading rate image size based on device properties
Fill with different shading rate invocation patters
2020-09-02 19:14:11 +02:00