mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
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. |
||
---|---|---|
.. | ||
alsa | ||
alsamidi | ||
coreaudio | ||
coremidi | ||
gl_context | ||
gles3 | ||
png | ||
pulseaudio | ||
spirv-reflect | ||
unix | ||
vulkan | ||
wasapi | ||
windows | ||
winmidi | ||
xaudio2 | ||
register_driver_types.cpp | ||
register_driver_types.h | ||
SCsub |