Shader recompiler: Add UBO

This commit is contained in:
wheremyfoodat 2024-07-15 04:10:47 +03:00
parent fe4bbea2ef
commit c8eb1c1128
6 changed files with 105 additions and 22 deletions

View file

@ -0,0 +1,18 @@
#pragma once
#include <array>
#include <type_traits>
#include "helpers.hpp"
namespace PICA {
struct FragmentUniforms {
using vec3 = std::array<float, 3>;
using vec4 = std::array<float, 4>;
static constexpr usize tevStageCount = 6;
s32 alphaReference;
alignas(16) vec4 constantColors[tevStageCount];
alignas(16) vec4 tevBufferColor;
};
} // namespace PICA