./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
0 / 11
0.0%
Branches:
0 / 40
0.0%
Functions:
0 / 1
0.0%

libs/render/src/eu/render/fullscreen.cc
Line Branch Exec Source
1 #include "eu/render/fullscreen.h"
2
3 #include "eu/core/geom.h"
4 #include "eu/core/geom.builder.h"
5
6
7 namespace eu::render
8 {
9
10 ✗ FullScreenGeom::FullScreenGeom()
11 {
12 const auto layout_shader_material = core::ShaderVertexAttributes{
13 ✗ {core::VertexType::position2xy, "a_position"},
14 {core::VertexType::texture2, "a_tex_coord"}
15
0/6
✗ Branch 10 → 11 not taken.
✗ Branch 10 → 49 not taken.
✗ Branch 13 → 14 not taken.
✗ Branch 13 → 15 not taken.
✗ Branch 53 → 54 not taken.
✗ Branch 53 → 55 not taken.
✗ };
16
0/8
✗ Branch 19 → 20 not taken.
✗ Branch 19 → 67 not taken.
✗ Branch 20 → 21 not taken.
✗ Branch 20 → 65 not taken.
✗ Branch 24 → 25 not taken.
✗ Branch 24 → 26 not taken.
✗ Branch 71 → 72 not taken.
✗ Branch 71 → 73 not taken.
✗ const auto layout_compiler = core::compile_attribute_layouts({layout_shader_material});
17
0/2
✗ Branch 26 → 27 not taken.
✗ Branch 26 → 101 not taken.
✗ const auto geom_layout = get_geom_layout(layout_compiler);
18
19 // ndc is [-1, 1], plane func generate a centered geom, so we set our plane to a size of 2
20 ✗ constexpr auto plane_size = 2.0f;
21
22
0/2
✗ Branch 29 → 30 not taken.
✗ Branch 29 → 81 not taken.
✗ layout = compile_shader_layout(layout_compiler, layout_shader_material, std::nullopt, std::nullopt);
23
0/2
✗ Branch 38 → 39 not taken.
✗ Branch 38 → 86 not taken.
✗ geom = compile_geom(
24
0/6
✗ Branch 33 → 34 not taken.
✗ Branch 33 → 96 not taken.
✗ Branch 34 → 35 not taken.
✗ Branch 34 → 94 not taken.
✗ Branch 37 → 38 not taken.
✗ Branch 37 → 88 not taken.
✗ USE_DEBUG_LABEL_MANY("full screen geom") core::geom::create_xy_plane(plane_size, plane_size, core::geom::SideCount::one_sided).to_geom(),
25 geom_layout
26 ✗ );
27
0/14
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 56 not taken.
✗ Branch 7 → 8 not taken.
✗ Branch 7 → 56 not taken.
✗ Branch 16 → 17 not taken.
✗ Branch 16 → 74 not taken.
✗ Branch 59 → 60 not taken.
✗ Branch 59 → 63 not taken.
✗ Branch 61 → 62 not taken.
✗ Branch 61 → 63 not taken.
✗ Branch 74 → 75 not taken.
✗ Branch 74 → 78 not taken.
✗ Branch 76 → 77 not taken.
✗ Branch 76 → 78 not taken.
✗ }
28
29 } // namespace eu::render
30