Commit graph

748 commits

Author SHA1 Message Date
Sascha Willems
04f956c1d0 Removed unused offset calculations
Fixes #1024
2023-04-14 18:31:51 +02:00
Sascha Willems
4a6371913d Reworked descriptor setup
Fixes #1027
2023-04-12 19:54:11 +02:00
Sascha Willems
e1699d0bf1 Correct file paths 2023-04-09 16:56:13 +02:00
Sascha Willems
787a4ee8e7 Ray tracing texturing and alpha mapping sample 2023-04-09 13:43:24 +02:00
Sascha Willems
cd6e3b9a23 Ray tracing texturing and alpha mapping sample 2023-04-09 13:40:12 +02:00
Sascha Willems
d0ad204606 Ray tracing texturing and alpha mapping sample 2023-04-09 11:37:44 +02:00
Sascha Willems
5645c2657f Use properly aligned offsets 2023-04-08 10:24:27 +02:00
Sascha Willems
8f1d351489 Started working on a ray tracing texture mapping Sample
Uses any hit for transparency, and BDA for accessing vertex and index buffers
2023-04-07 14:13:04 +02:00
Sascha Willems
aa3c00a784 Fix animation update
Fixes #1022
2023-04-07 12:58:11 +02:00
Sascha Willems
0ab683e827
Merge pull request #1019 from skal65535/patch-2
Fix a typo in rotation.y update
2023-04-07 12:31:17 +02:00
Sascha Willems
746277561a
Merge pull request #1021 from Keenuts/fix-vuid
validation: fix VUID-vkAllocateMemory 02790
2023-04-07 12:30:57 +02:00
Sascha Willems
03299b337f Cleanup, enable UI 2023-03-24 19:43:55 +01:00
Nathan Gauër
fae70ec4ae validation: fix VUID-vkAllocateMemory 02790
Related to #876.
On AMD RX 5700 XT, heaps with MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD
are present. Because the heap selection doesn't break early, the code
ends up selecting one of the 'late' heaps, which contains more property
bits than required. Including this one which causes validation error.

Breaking early should solve this on all GPUs, as the Vulkan specs
specifies the order of heap declarations:
```
For each pair of elements X and Y returned in memoryTypes, X must be
placed at a lower index position than Y if:
    - the set of bit flags returned in the propertyFlags member of X is
      a strict subset of the set of bit flags returned in the
      propertyFlags member of Y;
```

So if my understanding is correct, by breaking early we should always
select the most basic heap that meets the sample needs.

Signed-off-by: Nathan Gauër <nathan@gauer.org>
2023-03-22 23:52:52 +01:00
skal
06bd9b8caa
Fix a typo in rotation.y update
+ remove the doubled rotation code at call site.
2023-03-04 09:29:39 -08:00
Sascha Willems
f66ecd936e Added ImGui style selection 2023-02-25 10:27:47 +01:00
Sascha Willems
61bd5cfd92 Additional ImGui key mappings 2023-02-25 09:46:56 +01:00
Sascha Willems
cca1c865d9 Added keyboard input handling
Windows only
2023-02-25 09:37:08 +01:00
Sascha Willems
33bb0eb2b8 Simplify push constant setup
Fixes #1012
2023-02-24 17:03:48 +01:00
Sascha Willems
933a6f6dd9 Synchronization fix 2023-02-24 16:50:39 +01:00
Sascha Willems
5017d380af Code cleanup and fixes
Added color picker for clear color
2023-02-24 16:13:31 +01:00
carlkuesters
e2b237f21d Fix frustum corner calculation for cascading shadows (Vulkan's clip space has a [0,1] z range instead of [-1,1]). 2023-02-20 23:13:19 +01:00
Sascha Willems
27fa372391 Properly sync depth attachment access
Fixes validation
Fixes #820
2023-02-11 16:09:05 +01:00
Per Mathisen
580008ee5a Fix for base subpass depedencies had uninitialized dependency flags.
This consistently crashed all the examples on my linux laptop with
Intel GPU in it.

Ref #665
2023-01-05 13:28:40 +01:00
Sascha Willems
9b624451cb Fix base subpass depedencies
Fixes #665
2023-01-01 09:14:25 +01:00
Sascha Willems
6e68f76456 Fill stats and draw count buffer with zeroes
Fixes #748
2022-12-31 16:01:11 +01:00
Sascha Willems
ac1a216ac6
Merge pull request #790 from kuhar/clang-warnings
[NFC] Fix clang 10 warnings
2022-12-31 14:03:31 +01:00
Sascha Willems
c4b417d791
Merge pull request #783 from michead/shadowmappingomni
Omnidirectional Shadow Mapping example - Render depth to cubemap faces directly
2022-12-31 13:50:18 +01:00
Sascha Willems
630115bd13
Merge pull request #925 from galaxysailing/computecloth-update
computecloth redundant code
2022-12-31 13:44:47 +01:00
Sascha Willems
72e8083b7c Removed unnecessary component swizzle assignments
Fixes #160
2022-12-31 12:31:27 +01:00
Sascha Willems
07fe7401a1 Don't render scene when shadow map is dislplayed
Fixes #774
2022-12-31 12:11:21 +01:00
Sascha Willems
58b99c556e Cull mode for shadow pass
Fixes #946
2022-12-31 12:07:35 +01:00
Sascha Willems
d13b9a93bc Replaced outdated android layer names 2022-12-31 10:27:10 +01:00
Sascha Willems
e52a9342f4 Add command line arguments to headless samples
Those samples can now toggle between glsl and hlsl shaders
Moved command line parster to a separate header
2022-12-31 09:45:01 +01:00
Sascha Willems
484d16d394
Merge pull request #998 from wrightwriter/patch-1
fix minor typo
2022-12-29 20:13:18 +01:00
Tom Rix
3adef0e268 fix spelling
sloth -> cloth

Signed-off-by: Tom Rix <trix@redhat.com>
2022-12-27 11:39:30 -05:00
Sascha Willems
4a119ecd7b Fixed specialization constant type in readme 2022-12-24 15:31:53 +01:00
Sascha Willems
e80a063fc5 Fixed specialization constant type 2022-12-24 15:26:48 +01:00
Sascha Willems
86b5a1109b Added sub pass dependency for the depth attachment
Fixes #769
2022-12-13 20:49:19 +01:00
Sascha Willems
707bb41851 Minor code cleanup
Removed unused variables
2022-12-09 07:24:32 +01:00
Sascha Willems
26cfa27f07 Minor code cleanup
Removed unused variables
2022-12-09 07:12:45 +01:00
Sascha Willems
4584538ed8 Use alignment from properties
Clean up
2022-12-05 20:14:35 +01:00
Sascha Willems
250c7df08b Added sample for VK_EXT_descriptor_buffer
Work-in-progress
2022-12-04 12:51:14 +01:00
Lionel Landwerlin
46054ee59d dynamicrendering: use the right layout for depth/stencil 2022-11-21 11:38:44 +02:00
Petar Guglev
8a8ce0e266
fix minor typo 2022-11-15 18:11:05 +02:00
Sascha Willems
ed406e61a6 Added simple task shader 2022-11-10 18:24:57 +01:00
Sascha Willems
42e4bd4a11 Removed unused include 2022-11-03 19:40:42 +01:00
Sascha Willems
89fc84bf14 Added a basic mesh shader example 2022-11-03 19:27:51 +01:00
Sascha Willems
2ece9f013f Remove unused descriptor set layout binding
Fixes #996
2022-10-15 19:36:24 +02:00
Light7734
d6084061b3
fix: typo in glfwloading example 2022-10-11 10:32:51 +00:00
Sascha Willems
ae3c1325f8 Added dynamic state 3 2022-10-03 18:52:25 +02:00