[PICA] We can now upload floating point uniforms for real

This commit is contained in:
wheremyfoodat 2022-09-23 14:31:26 +03:00
parent 92b7ca3b8c
commit ce07b7e5e0
3 changed files with 7 additions and 6 deletions

View file

@ -17,6 +17,9 @@ void PICAShader::run() {
PICAShader::vec4f PICAShader::getSource(u32 source) {
if (source < 16)
return attributes[source];
else if (source >= 0x20 && source <= 0x7f)
return floatUniforms[source - 0x20];
Helpers::panic("[PICA] Unimplemented source value: %X", source);
}