added API to discard framebuffer attachments.