sandbox
Loading...
Searching...
No Matches
subrenderer.hpp
1#ifndef LIBSBX_GRAPHICS_SUBRENDERER_HPP_
2#define LIBSBX_GRAPHICS_SUBRENDERER_HPP_
3
4#include <cmath>
5
6#include <libsbx/graphics/commands/command_buffer.hpp>
7
8#include <libsbx/graphics/pipeline/pipeline.hpp>
9
10namespace sbx::graphics {
11
13
14public:
15
16 subrenderer(const pipeline::stage& stage)
17 : _stage{stage} { }
18
19 virtual ~subrenderer() = default;
20
21 virtual auto render(command_buffer& command_buffer) -> void = 0;
22
23 auto stage() const noexcept -> const pipeline::stage& {
24 return _stage;
25 }
26
27private:
28
29 pipeline::stage _stage{};
30
31}; // class subrenderer
32
33} // namespace sbx::graphics
34
35#endif // LIBSBX_GRAPHICS_SUBRENDERER_HPP_
Definition: command_buffer.hpp:14
Definition: subrenderer.hpp:12
Definition: pipeline.hpp:22