mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[PICA] We can now upload floating point uniforms
This commit is contained in:
parent
a7bde80658
commit
92b7ca3b8c
6 changed files with 94 additions and 23 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue