Loading...
Searching...
No Matches
CommonUBOs.hpp
1#pragma once
2
3#include <cstdint>
4
5namespace score::gfx
6{
7#pragma pack(push, 1)
12{
13 float time{};
14 float timeDelta{};
15 float progress{};
16 float sampleRate{};
17
18 int32_t passIndex{};
19 int32_t frameIndex{};
20
21 float renderSize[2]{2048, 2048};
22 float date[4]{0.f, 0.f, 0.f, 0.f};
23};
24
29{
30 float mvp[16]{};
31 float mv[16]{};
32 float model[16]{};
33 float view[16]{};
34 float projection[16]{};
35 float modelNormal[9]{};
36 float padding[3]; // Needed as a mat3 needs a bit more space...
37 float fov = 90.;
38};
39
40static_assert(
41 sizeof(ModelCameraUBO) == sizeof(float) * (16 + 16 + 16 + 16 + 16 + 9 + 3 + 1));
42
47{
48 float clipSpaceCorrMatrix[16]{};
49
50 float renderSize[2]{};
51};
52
57{
58 float scale[2]{1.f, 1.f};
59 float textureSize[2]{1.f, 1.f};
60};
61
62#pragma pack(pop)
63}
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:12
UBO shared across all entities shown with the same camera.
Definition CommonUBOs.hpp:29
UBO shared across all entities shown on the same output.
Definition CommonUBOs.hpp:47
UBO specific to individual processes / nodes.
Definition CommonUBOs.hpp:12
UBO shared across all video objects.
Definition CommonUBOs.hpp:57