Upsample.h 679 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <anki/renderer/RenderingPass.h>
  7. namespace anki
  8. {
  9. /// @addtogroup renderer
  10. /// @{
  11. /// Upsample some textures and append them to IS.
  12. class Upsample : public RenderingPass
  13. {
  14. public:
  15. Upsample(Renderer* r)
  16. : RenderingPass(r)
  17. {
  18. }
  19. ANKI_USE_RESULT Error init(const ConfigSet& config);
  20. void run(CommandBufferPtr cmdb);
  21. private:
  22. ResourceGroupPtr m_rcGroup;
  23. FramebufferPtr m_fb;
  24. ShaderResourcePtr m_frag;
  25. ShaderResourcePtr m_vert;
  26. PipelinePtr m_ppline;
  27. };
  28. /// @}
  29. } // end namespace anki