gl::Error Framebuffer11::markAttachmentsDirty() const { for (const auto &colorAttachment : mState.getColorAttachments()) { if (colorAttachment.isAttached()) { ANGLE_TRY(MarkAttachmentsDirty(&colorAttachment)); } } ANGLE_TRY(MarkAttachmentsDirty(mState.getDepthAttachment())); ANGLE_TRY(MarkAttachmentsDirty(mState.getStencilAttachment())); return gl::NoError(); }
gl::Error Framebuffer11::markAttachmentsDirty(const gl::Context *context) const { const auto &colorAttachments = mState.getColorAttachments(); for (size_t drawBuffer : mState.getEnabledDrawBuffers()) { const gl::FramebufferAttachment &colorAttachment = colorAttachments[drawBuffer]; ASSERT(colorAttachment.isAttached()); ANGLE_TRY(MarkAttachmentsDirty(context, &colorAttachment)); } const gl::FramebufferAttachment *dsAttachment = mState.getDepthOrStencilAttachment(); if (dsAttachment) { ANGLE_TRY(MarkAttachmentsDirty(context, dsAttachment)); } return gl::NoError(); }