Files
P3DS-test/src/core/PICA/shader_unit.cpp
wheremyfoodat e80679fe77 Geometry pipeline v2
Co-Authored-By: Sky <skylersaleh@gmail.com>
2023-02-26 20:41:33 +02:00

33 lines
652 B
C++

#include "PICA/shader_unit.hpp"
void ShaderUnit::reset() {
vs.reset();
gs.reset();
}
void PICAShader::reset() {
loadedShader.fill(0);
bufferedShader.fill(0);
operandDescriptors.fill(0);
boolUniform = 0;
bufferIndex = 0;
floatUniformIndex = 0;
floatUniformWordCount = 0;
opDescriptorIndex = 0;
f32UniformTransfer = false;
const vec4f zero = vec4f({ f24::zero(), f24::zero(), f24::zero(), f24::zero() });
inputs.fill(zero);
floatUniforms.fill(zero);
outputs.fill(zero);
tempRegisters.fill(zero);
for (auto& e : intUniforms) {
e.x() = e.y() = e.z() = e.w() = 0;
}
addrRegister.x() = 0;
addrRegister.y() = 0;
loopCounter = 0;
}