|
|
|
@ -328,6 +328,7 @@ private:
|
|
|
|
|
// the end of a uniform block is included in UNIFORM_BLOCK_DATA_SIZE or not.
|
|
|
|
|
// Not following that rule will cause problems on some AMD drivers.
|
|
|
|
|
struct UniformData {
|
|
|
|
|
alignas(8) GLvec2 framebuffer_scale;
|
|
|
|
|
GLint alphatest_ref;
|
|
|
|
|
GLfloat depth_scale;
|
|
|
|
|
GLfloat depth_offset;
|
|
|
|
@ -342,7 +343,7 @@ private:
|
|
|
|
|
alignas(16) GLvec4 tev_combiner_buffer_color;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static_assert(sizeof(UniformData) == 0x3B0, "The size of the UniformData structure has changed, update the structure in the shader");
|
|
|
|
|
static_assert(sizeof(UniformData) == 0x3C0, "The size of the UniformData structure has changed, update the structure in the shader");
|
|
|
|
|
static_assert(sizeof(UniformData) < 16384, "UniformData structure must be less than 16kb as per the OpenGL spec");
|
|
|
|
|
|
|
|
|
|
/// Sets the OpenGL shader in accordance with the current PICA register state
|
|
|
|
|