Commit graph

680 commits

Author SHA1 Message Date
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
a369e6ed96 Apply shader group handle alignment where required
Fixes #787
2020-12-12 08:20:33 +01:00
michead
8eeb6599d6 render depth to cubemap faces directly 2020-11-28 11:35:18 +00: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
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
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
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
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
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
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
7ef936b044 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-08-21 17:29:43 +02:00
Sascha Willems
e04c084312 Use push constants for fixed object data, some minor code cleanup 2020-08-21 17:27:54 +02:00
Francesco
2210ca22a9
add FreeBSD support (#752)
Signed-off-by: Lucas Francesco <uramekus@cirno.dev>
2020-08-21 16:23:01 +02:00
Sascha Willems
2083a9839c Added Android build files and screenshot for order independent transparency sample 2020-08-21 10:12:55 +02:00
daemyung jang
82747df540
Add Order Independent Transparency example (#755)
* Add Order Independent Transparency example

* Update README.md

* Add copyright at Order Independent Transparency example

* Disable the validation by default
2020-08-21 09:27:06 +02:00
Sascha Willems
d6b61a0952 Ray tracing samples properly handle window resize
Refs #750
2020-08-16 10:28:29 +02:00
Sascha Willems
ee946e2abf
Update ray tracing samples to use VK_KHR_ray_tracing (#753)
* Started updating ray tracing samples to KHR extension

* Updated GLSL shaders to use GL_EXT_ray_tracing

* Code cleanup, naming

* Fix include directories to use Vulkan headers from repository instead of NDK for the Android build

* Added new Android function pointers

* Renamed basic ray tracing sample

Added android build files

* Remove unused batch file

* Replaced remaining NV identifiers

* Updating ray tracing shadow sample to KHR extension

* Updated shaders to use KHR instead of NV extension

Fixed shader bindings

* Updating ray tracing reflections sample to KHR extension

* Renamed ray tracing reflections sample

* Renamed ray tracing shadows sample

Added android build files

* Removed no-longer used batch files for shader generation

* Proper alignment for the shader binding table

* Updated readme

* Reworked shader group setup

* Cleanup

* Reworked shader group setup

* Reworked shader group setup

* Code cleanup
2020-08-15 17:59:02 +02:00
Sascha Willems
810efdae27
Merge pull request #749 from setoye/patch-1
fix typo
2020-08-09 18:12:02 +02:00
Sascha Willems
583e61ac35 Fixed typos 2020-08-09 14:39:32 +02:00
Sascha Willems
2898671f40 Fixed typos 2020-08-09 13:48:49 +02:00
Sascha Willems
fd5f50f298 Fixed typos 2020-08-09 13:38:33 +02:00
Sascha Willems
de035d3572 Fixed typos 2020-08-09 13:28:03 +02:00
Sascha Willems
a465bad5aa Cleaned up includes
Fixed typos
2020-08-09 13:16:35 +02:00
Sascha Willems
9207090718 Fixed typos 2020-08-09 12:14:12 +02:00
Sascha Willems
361535b29e Split texture class into header and implementation
Moved include to base class
2020-08-08 22:54:34 +02:00
Sascha Willems
231e97b8c0 Split device class into header and implementation
Moved include to base class
2020-08-08 22:36:01 +02:00
Sascha Willems
122288fe25 Split buffer class into header and implementation
Moved include to base class
2020-08-08 22:18:35 +02:00
Sascha Willems
78f9881ebf Fixed typos 2020-08-08 18:22:10 +02:00
Sascha Willems
5539991ca5 Fixed typos 2020-08-08 18:13:29 +02:00
Sascha Willems
3abe588157 Fixed typos 2020-08-08 13:59:58 +02:00
YuTArrUsO
117641ebfb
fix typo
line 751, ttachment -> attachment, transitionss -> transitions
2020-08-02 16:21:57 +08:00
Sascha Willems
9c029b36fa Enable anisotropic filtering if supported by the devices, fixes validation layer message 2020-07-30 21:10:51 +02:00
Sascha Willems
dd0ec84481
Merge pull request #499 from AndreasReiten/patch-1
Fix for multisample depth resolve attachment and storeOp for the MSAA color attachment
2020-07-30 20:55:01 +02:00
Sascha Willems
524825dcd6
Merge pull request #697 from congyue1977/iss696_crash_Adreno640
fix:Inputattachment demo crash on Adreno 640 GPU
2020-07-28 21:25:06 +02:00