Commit graph

9 commits

Author SHA1 Message Date
Alejandro Piñeiro
d33bc6c75e shadowmappping: check if depth format supports LINEAR filtering
The test uses the format VK_FORMAT_D16_UNORM for the shadow map, and
it sets unconditionally VK_FILTER_LINEAR when using it.

But by spec, it is not mandatory that format to support
filtering. Explained here:

https://www.khronos.org/registry/vulkan/specs/1.2/html/chap32.html

table 51, VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT.

This commit checks if that flag is present with that format to decide
between LINEAR (the default value) or NEAREST (if LINEAR is not
supported). Adds a auxiliar method on VulkanTools just in case it
could be useful for other demos.

This is not detected by the Validation Layers, but raise an assertion
with one of the development tools we use to implement the Mesa v3dv
driver (rpi4 vulkan driver).
2020-06-20 00:08:13 +02:00
Ben Clayton
ca884587a4 Move shaders into glsl and hlsl directories
Move `data/shaders` to `data/shaders/glsl`
Move `data/hlsl` to `data/shaders/hlsl`

Fix up shader paths in the cpp files to point to the new glsl location.

`data/shaders/hlsl/compile.py` still overwrites the glsl .spv files (for
now).

Issue: #723
2020-06-01 12:22:28 +01:00
Sascha Willems
ab38f8b150 Code-Cleanup: All samples now use the camera class and it's matrices
Cleaned up base class
2020-04-22 20:58:24 +02:00
Sascha Willems
652fc3ab00 Code cleanup
Fixes #657
2020-01-24 09:16:52 +01:00
Sascha Willems
b1c2529032 Replace dedicated offscreen command buffer and complicated synchronization with single command buffer and sync via sub pass dependencies
Code cleanup
2019-04-01 20:22:28 +02:00
saschawillems
c1c4f06a23 Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup
Refs #496
2018-08-30 21:08:02 +02:00
saschawillems
aa5a0825b0 Fixed shadow mapping pass sub pass dependency src access masks 2018-06-30 19:41:53 +02:00
prideout
556e12769c Disable fragment shader when generating shadow map.
This fixes the following validation warning:

fragment shader writes to output location 0 with no matching attachment
2018-05-21 16:47:32 -07:00
saschawillems
94a076e1ae Moved example source files into sub folder 2017-11-12 19:32:09 +01:00
Renamed from shadowmapping/shadowmapping.cpp (Browse further)