mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Fix interpreter
This commit is contained in:
parent
ef65c47592
commit
e66d6a9399
2 changed files with 8 additions and 2 deletions
|
@ -127,12 +127,15 @@ namespace gl
|
||||||
ParamArray arr;
|
ParamArray arr;
|
||||||
GLVertexDecompilerThread comp(null_prog, shader_str, arr);
|
GLVertexDecompilerThread comp(null_prog, shader_str, arr);
|
||||||
|
|
||||||
|
ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" };
|
||||||
|
uniforms.items.emplace_back("vc[468]", -1);
|
||||||
|
|
||||||
std::stringstream builder;
|
std::stringstream builder;
|
||||||
comp.insertHeader(builder);
|
comp.insertHeader(builder);
|
||||||
|
|
||||||
builder << "#define Z_NEGATIVE_ONE_TO_ONE\n\n";
|
builder << "#define Z_NEGATIVE_ONE_TO_ONE\n\n";
|
||||||
|
|
||||||
comp.insertConstants(builder, {});
|
comp.insertConstants(builder, { uniforms });
|
||||||
comp.insertInputs(builder, {});
|
comp.insertInputs(builder, {});
|
||||||
|
|
||||||
// Insert vp stream input
|
// Insert vp stream input
|
||||||
|
|
|
@ -24,9 +24,12 @@ namespace vk
|
||||||
VKVertexProgram vk_prog;
|
VKVertexProgram vk_prog;
|
||||||
VKVertexDecompilerThread comp(null_prog, shader_str, arr, vk_prog);
|
VKVertexDecompilerThread comp(null_prog, shader_str, arr, vk_prog);
|
||||||
|
|
||||||
|
ParamType uniforms = { PF_PARAM_UNIFORM, "vec4" };
|
||||||
|
uniforms.items.emplace_back("vc[468]", -1);
|
||||||
|
|
||||||
std::stringstream builder;
|
std::stringstream builder;
|
||||||
comp.insertHeader(builder);
|
comp.insertHeader(builder);
|
||||||
comp.insertConstants(builder, {});
|
comp.insertConstants(builder, { uniforms });
|
||||||
comp.insertInputs(builder, {});
|
comp.insertInputs(builder, {});
|
||||||
|
|
||||||
// Insert vp stream input
|
// Insert vp stream input
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue