File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed
render/include/facade/render
scene/include/facade/scene Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 4
4
#include < facade/vk/gfx.hpp>
5
5
6
6
namespace facade {
7
+ // /
8
+ // / \brief Creates a window and a renderer.
9
+ // /
7
10
class Gui {
8
11
public:
9
12
struct InitInfo {
Original file line number Diff line number Diff line change 8
8
#include < memory>
9
9
10
10
namespace facade {
11
+
12
+ // /
13
+ // / \brief Handles all information about the frame and what is happening.
14
+ // /
11
15
struct FrameStats {
16
+
17
+ // /
18
+ // / \brief Name of the GPU
19
+ // /
12
20
std::string_view gpu_name{};
21
+
13
22
// /
14
23
// / \brief Total frames so far
15
24
// /
16
25
std::uint64_t frame_counter{};
26
+
17
27
// /
18
28
// / \brief Triangles drawn in previous frame
19
29
// /
20
30
std::uint64_t triangles{};
31
+
21
32
// /
22
33
// / \brief Draw calls in previous frame
23
34
// /
24
35
std::uint32_t draw_calls{};
36
+
25
37
// /
26
38
// / \brief Framerate (until previous frame)
27
39
// /
28
40
std::uint32_t fps{};
41
+
29
42
// /
30
43
// / \brief Current present mode
31
44
// /
32
45
vk::PresentModeKHR mode{};
46
+
33
47
// /
34
48
// / \brief Multi-sampled anti-aliasing level
35
49
// /
36
50
vk::SampleCountFlagBits msaa{};
37
51
};
38
52
53
+ // /
54
+ // / \brief
55
+ // /
39
56
struct RendererCreateInfo {
40
57
std::size_t command_buffers{1 };
41
58
std::uint8_t desired_msaa{1 };
42
59
};
43
60
61
+ // /
62
+ // / \brief Creates a window and a renderer.
63
+ // /
44
64
class Renderer {
45
65
public:
46
66
using CreateInfo = RendererCreateInfo;
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ struct ViewPlane {
12
12
float far{};
13
13
};
14
14
15
+ // //////////////////////////////////////////////////////////
16
+ // / \brief A camera inside of a 3d plane
17
+ // /
18
+ // //////////////////////////////////////////////////////////
15
19
struct Camera {
16
20
struct Perspective {
17
21
ViewPlane view_plane{1 .0f , 1000 .0f };
Original file line number Diff line number Diff line change 2
2
#include < cstdint>
3
3
4
4
namespace facade {
5
+ // //////////////////////////////////////////////////////////
6
+ // / \brief A ID assigned to items inside of the GLTF viewer.
7
+ // /
8
+ // //////////////////////////////////////////////////////////
5
9
template <typename T>
6
10
class Id {
7
11
public:
8
12
using id_type = std::size_t ;
9
13
14
+ // //////////////////////////////////////////////////////////
15
+ // / \brief ADD MORE INFO.
16
+ // /
17
+ // / \param value ADD MORE INFO.
18
+ // /
19
+ // //////////////////////////////////////////////////////////
10
20
constexpr Id (std::size_t value = {}) : m_value(value) {}
11
21
12
22
constexpr std::size_t value () const { return m_value; }
You can’t perform that action at this time.
0 commit comments