e69d762dd0
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. |
||
---|---|---|
.. | ||
forward_clustered | ||
forward_mobile | ||
shaders | ||
storage_rd | ||
cluster_builder_rd.cpp | ||
cluster_builder_rd.h | ||
effects_rd.cpp | ||
effects_rd.h | ||
pipeline_cache_rd.cpp | ||
pipeline_cache_rd.h | ||
renderer_canvas_render_rd.cpp | ||
renderer_canvas_render_rd.h | ||
renderer_compositor_rd.cpp | ||
renderer_compositor_rd.h | ||
renderer_scene_environment_rd.cpp | ||
renderer_scene_environment_rd.h | ||
renderer_scene_gi_rd.cpp | ||
renderer_scene_gi_rd.h | ||
renderer_scene_render_rd.cpp | ||
renderer_scene_render_rd.h | ||
renderer_scene_sky_rd.cpp | ||
renderer_scene_sky_rd.h | ||
renderer_storage_rd.cpp | ||
renderer_storage_rd.h | ||
SCsub | ||
shader_rd.cpp | ||
shader_rd.h | ||
uniform_set_cache_rd.cpp | ||
uniform_set_cache_rd.h |