Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WriteUniformIntReg(bool gs, unsigned index, const Math::Vec4<u8>& values) {
- const char* shader_type = gs ? "GS" : "VS";
- auto& setup = gs ? g_state.gs : g_state.vs;
- ASSERT(index < setup.uniforms.i.size());
- setup.uniforms.i[index] = values;
- LOG_TRACE(HW_GPU, "Set %s integer uniform %d to %02x %02x %02x %02x", shader_type, index,
- values.x.Value(), values.y.Value(), values.z.Value(), values.w.Value());
- // Copy for GS in shared mode
- if (!gs && SharedGS()) {
- WriteUniformIntReg(true, index, values);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement