[PICA] We can now upload floating point uniforms

This commit is contained in:
wheremyfoodat 2022-09-23 14:15:04 +03:00
parent a7bde80658
commit 92b7ca3b8c
6 changed files with 94 additions and 23 deletions

View file

@ -3,4 +3,24 @@
void ShaderUnit::reset() {
vs.reset();
gs.reset();
}
void PICAShader::reset() {
loadedShader.fill(0);
bufferedShader.fill(0);
operandDescriptors.fill(0);
intUniforms.fill(0);
boolUniform = 0;
bufferIndex = 0;
floatUniformIndex = 0;
floatUniformWordCount = 0;
opDescriptorIndex = 0;
f32UniformTransfer = false;
const vec4f zero = vec4f({ f24::fromFloat32(0.0), f24::fromFloat32(0.0), f24::fromFloat32(0.0), f24::fromFloat32(0.0) });
attributes.fill(zero);
floatUniforms.fill(zero);
outputs.fill(zero);
tempRegisters.fill(zero);
}