Commit graph

2414 commits

Author SHA1 Message Date
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
Sascha Willems
9d0fd8ce5a Started work on variable rate shading sample 2020-09-01 21:51:06 +02:00
Sascha Willems
dcdabb9b12 Added SPIR-V extension to HLSL compile script 2020-08-29 19:56:07 +02:00
Sascha Willems
b9f4b1adf1 Use concurrent sharing mode for image if compute and graphics queue family indices differ
Use semaphores to sync compute and graphics work
Fixes #667
2020-08-29 12:19:05 +02:00
Sascha Willems
5d594acb02 Bugfix for checking enabled instance extensions 2020-08-29 11:32:48 +02:00
Sascha Willems
af49951afb Removed unused include 2020-08-29 10:43:01 +02:00
Sascha Willems
4e600f5943 Fixed coordinate transformation for skybox and reflection objects
Matched HLSL and GLSL shaders
Fixes #757
2020-08-28 21:15:13 +02:00
Sascha Willems
1d815e6ced Better handling of device creation failure 2020-08-27 22:32:49 +02:00
Sascha Willems
8374d6cd68 Code cleanup, changed message for missing enabled device extensions 2020-08-27 22:24:43 +02:00
Sascha Willems
de61539799 Store instance extensions, reworked support check 2020-08-27 19:56:02 +02:00
Jérôme Leclercq
3298455373
Output warning to stderr if an extension is not supported (#756) 2020-08-27 19:36:24 +02:00
Sascha Willems
d5be770f55 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-08-24 20:04:53 +02:00
Sascha Willems
236a424955 Fixed full screen mode for resolutions different than current desktop size 2020-08-24 20:04:46 +02:00
datenwolf
fd202bfc76
xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error (#720)
* xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error: Fixed the error check to conform to XCB and assert nonnull pointer

* merged with newest master from upstream (tagged ktx)

Co-authored-by: Wolfgang Draxinger <code@datenwolf.net>
Co-authored-by: datenwolf <dw@kraeh.datenwolf.net>
2020-08-24 08:01:23 +02:00
Sascha Willems
d32663d569 Merged #729 2020-08-23 18:05:39 +02:00
Sascha Willems
8f88155a72 Remove prebuilt lib 2020-08-22 09:23:46 +02:00