procedural-3d-engine/base
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
..
benchmark.hpp Output device info, benchmark result file optional 2018-01-19 21:43:00 +01:00
camera.hpp Code-Cleanup: All samples now use the camera class and it's matrices 2020-04-22 20:58:24 +02:00
CMakeLists.txt Started replacing gli with libktx 2019-08-02 20:41:44 +02:00
frustum.hpp Moved frustum class to vks namespace (Refs #260) 2017-02-12 13:37:12 +01:00
keycodes.hpp Removed key dummy codes for android 2017-11-04 10:33:55 +01:00
threadpool.hpp fix error build 2017-03-18 19:30:26 +03:00
VulkanAndroid.cpp Android alert display functionality using JNI 2018-04-30 22:24:45 +02:00
VulkanAndroid.h Android alert display functionality using JNI 2018-04-30 22:24:45 +02:00
VulkanBuffer.hpp Initialize buffer and memory with VK_NULL_HANDLE 2017-04-16 13:39:36 +02:00
VulkanDebug.cpp Use VK_EXT_debug_utils instead of deprecated VK_EXT_debug_report for debugging 2019-10-18 20:51:46 +02:00
VulkanDebug.h Debug message callback calling conventions 2017-11-04 15:48:51 +01:00
VulkanDevice.hpp Fix scope for VkPhysicalDeviceFeatures2 2020-03-31 08:21:28 +02:00
vulkanexamplebase.cpp Add command flag for picking between shaders 2020-06-01 12:22:28 +01:00
vulkanexamplebase.h Add command flag for picking between shaders 2020-06-01 12:22:28 +01:00
VulkanFrameBuffer.hpp Fix typos 2020-01-12 12:56:16 +01:00
VulkanglTFModel.hpp Added helper function to get vertex input attribute descriptions from requested vertexattributes as a vector 2020-04-25 17:09:31 +02:00
VulkanHeightmap.hpp Replaced gli with libktx for terrain tessellation height map loading 2019-08-03 10:39:39 +02:00
VulkanInitializers.hpp Remove unnecessary assignment 2020-01-06 20:07:09 +01:00
VulkanModel.hpp Use proper buffer sizes 2019-11-19 18:02:49 +01:00
VulkanSwapChain.hpp Fix typos 2020-01-12 12:56:16 +01:00
VulkanTexture.hpp Merge pull request #653 from httpdigest/master 2020-02-14 07:00:18 +01:00
VulkanTools.cpp shadowmappping: check if depth format supports LINEAR filtering 2020-06-20 00:08:13 +02:00
VulkanTools.h shadowmappping: check if depth format supports LINEAR filtering 2020-06-20 00:08:13 +02:00
VulkanUIOverlay.cpp Load UI overla font from asset path 2020-02-17 21:09:43 +01:00
VulkanUIOverlay.h Optimized UI overlay strategy 2018-09-01 12:58:28 +02:00