Merge pull request #107451 from NetroScript/fix-vrs-attachment
Fix the VRS attachment being incorrectly added to `color_attachments`
This commit is contained in:
commit
5507b3aa80
@ -2907,6 +2907,8 @@ RID RenderingDevice::framebuffer_create(const Vector<RID> &p_texture_attachments
|
|||||||
|
|
||||||
if (texture && texture->usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
|
if (texture && texture->usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
|
||||||
pass.depth_attachment = i;
|
pass.depth_attachment = i;
|
||||||
|
} else if (texture && texture->usage_flags & TEXTURE_USAGE_VRS_ATTACHMENT_BIT) {
|
||||||
|
// Prevent the VRS attachment from being added to the color_attachments.
|
||||||
} else {
|
} else {
|
||||||
if (texture && texture->is_resolve_buffer) {
|
if (texture && texture->is_resolve_buffer) {
|
||||||
pass.resolve_attachments.push_back(i);
|
pass.resolve_attachments.push_back(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user