[PICA] Fix more shader bugs

This commit is contained in:
wheremyfoodat 2022-09-27 02:27:41 +03:00
parent f90dd2d60b
commit 4d1bb6f866
4 changed files with 10 additions and 4 deletions

View file

@ -59,6 +59,7 @@ namespace PICAInternalRegs {
VertexIntUniform2 = 0x2B3,
VertexIntUniform3 = 0x2B4,
VertexShaderEntrypoint = 0x2BA,
VertexShaderTransferEnd = 0x2BF,
VertexFloatUniformIndex = 0x2C0,
VertexFloatUniformData0 = 0x2C1,

View file

@ -150,7 +150,8 @@ class PICAShader {
public:
std::array<u32, 512> loadedShader; // Currently loaded & active shader
std::array<u32, 512> bufferedShader; // Shader to be transferred when the SH_CODETRANSFER_END reg gets written to
u32 entrypoint = 0; // Initial shader PC
u32 boolUniform;
std::array<OpenGL::Vector<u8, 4>, 4> intUniforms;
std::array<vec4f, 96> floatUniforms;