Shader decompiler: Get PICA uniforms uploaded to the GPU

This commit is contained in:
wheremyfoodat 2024-07-26 14:28:48 +03:00
parent fd90cf7d9f
commit 67ff1ccb8b
3 changed files with 28 additions and 6 deletions

View file

@ -301,6 +301,10 @@ class PICAShader {
Hash getCodeHash();
Hash getOpdescHash();
// Returns how big the PICA uniforms are combined. Used for hw accelerated shaders where we upload the uniforms to our GPU.
static constexpr usize totalUniformSize() { return sizeof(floatUniforms) + sizeof(intUniforms) + sizeof(boolUniform); }
void* getUniformPointer() { return static_cast<void*>(&floatUniforms); }
};
static_assert(