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
17 int32_t passIndex{};
18 int32_t frameIndex{};
19
20 float padding0[1];
21 float renderSize[2]{2048, 2048};
22 float date[4]{0.f, 0.f, 0.f, 0.f};
23 float mouse[4]{0.5f, 0.5f, 0.5f, 0.5f};
24 float channelTime[4]{0.5f, 0.5f, 0.5f, 0.5f};
25
26 float sampleRate{};
27};
28
33{
34 float mvp[16]{};
35 float mv[16]{};
36 float model[16]{};
37 float view[16]{};
38 float projection[16]{};
39 float modelNormal[9]{};
40 float padding[3]; // Needed as a mat3 needs a bit more space...
41 float fov = 90.;
42};
43
44static_assert(
45 sizeof(ModelCameraUBO) == sizeof(float) * (16 + 16 + 16 + 16 + 16 + 9 + 3 + 1));
46
51{
52 float clipSpaceCorrMatrix[16]{};
53
54 float renderSize[2]{};
55};
56
61{
62 float scale[2]{1.f, 1.f};
63 float textureSize[2]{1.f, 1.f};
64};
65
66#pragma pack(pop)
67}
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:12
UBO shared across all entities shown with the same camera.
Definition CommonUBOs.hpp:33
UBO shared across all entities shown on the same output.
Definition CommonUBOs.hpp:51
UBO specific to individual processes / nodes.
Definition CommonUBOs.hpp:12
UBO shared across all video objects.
Definition CommonUBOs.hpp:61