FramebufferCommon.h 677 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #ifndef ANKI_GR_FRAMEBUFFER_COMMON_H
  6. #define ANKI_GR_FRAMEBUFFER_COMMON_H
  7. #include "anki/gr/Common.h"
  8. #include "anki/gr/TextureHandle.h"
  9. namespace anki {
  10. /// @addtogroup graphics
  11. /// @{
  12. struct Attachment
  13. {
  14. TextureHandle m_texture;
  15. U32 m_layer = 0;
  16. U32 m_mipmap = 0;
  17. };
  18. /// Framebuffer initializer.
  19. struct FramebufferInitializer
  20. {
  21. Array<Attachment, MAX_COLOR_ATTACHMENTS> m_colorAttachments;
  22. U32 m_colorAttachmentsCount = 0;
  23. Attachment m_depthStencilAttachment;
  24. };
  25. /// @}
  26. } // end namespace anki
  27. #endif