virtualx-engine/drivers/vulkan
jfons e69d762dd0 Add color pass flags to Forward Clustered renderer
This commit removes a lot of enum values related to the color render pass in favor of a new flag-bases approach. This means instead of hard-coding all the possible option combinations into enums, we can write our logic by checking a bit-mask.

The changes in rendering_device_vulkan.cpp add support for unused attachments. That means RenderingDeviceVulkan::framebuffer_create() can take null RIDs in the attachments vector, which will result in VK_ATTACHMENT_UNUSED entries in the render pass.

This is used in this same PR to establish fixed locations for the color pass attachments (only color and separate specular so far, but TAA will add motion vectors as well). This way the attachment locations in the shader can stay the same regardless of which attachments are actually used.

Right now all the combinations of flags are generated, but we will need to add a way to limit the amount of combinations in the future.
2022-04-01 12:12:49 +02:00
..
rendering_device_vulkan.cpp Add color pass flags to Forward Clustered renderer 2022-04-01 12:12:49 +02:00
rendering_device_vulkan.h vk_mem_alloc: Update to upstream + Replace use of deprecated items 2022-03-29 11:28:09 +02:00
SCsub Fix build for macOS / iOS with the statically linked MoltenVK after VMA update. 2022-02-25 11:52:54 +02:00
vulkan_context.cpp Fix typos with codespell 2022-03-31 14:07:29 +02:00
vulkan_context.h Implementing OpenXR driver 2022-02-23 12:02:24 +01:00
vulkan_hooks.h Implementing OpenXR driver 2022-02-23 12:02:24 +01:00