AccelerationStructureBuilder.h 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright (C) 2009-2022, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Renderer/RendererObject.h>
  7. namespace anki {
  8. /// @addtogroup renderer
  9. /// @{
  10. /// Build acceleration structures.
  11. class AccelerationStructureBuilder : public RendererObject
  12. {
  13. public:
  14. AccelerationStructureBuilder(Renderer* r)
  15. : RendererObject(r)
  16. {
  17. }
  18. ~AccelerationStructureBuilder()
  19. {
  20. }
  21. Error init()
  22. {
  23. return Error::NONE;
  24. }
  25. void populateRenderGraph(RenderingContext& ctx);
  26. AccelerationStructureHandle getAccelerationStructureHandle() const
  27. {
  28. return m_runCtx.m_tlasHandle;
  29. }
  30. public:
  31. class
  32. {
  33. public:
  34. AccelerationStructurePtr m_tlas;
  35. AccelerationStructureHandle m_tlasHandle;
  36. } m_runCtx;
  37. };
  38. /// @}
  39. } // namespace anki