Pica: Create 'State' structure and move state memory there.
This commit is contained in:
parent
4c207798b4
commit
1b42d55a9d
15 changed files with 461 additions and 438 deletions
|
@ -253,13 +253,13 @@ void GraphicsVertexShaderModel::OnUpdate()
|
|||
|
||||
info.Clear();
|
||||
|
||||
for (auto instr : Pica::VertexShader::GetShaderBinary())
|
||||
for (auto instr : Pica::g_state.vs.program_code)
|
||||
info.code.push_back({instr});
|
||||
|
||||
for (auto pattern : Pica::VertexShader::GetSwizzlePatterns())
|
||||
for (auto pattern : Pica::g_state.vs.swizzle_data)
|
||||
info.swizzle_info.push_back({pattern});
|
||||
|
||||
info.labels.insert({Pica::registers.vs_main_offset, "main"});
|
||||
info.labels.insert({ Pica::g_state.regs.vs_main_offset, "main" });
|
||||
|
||||
endResetModel();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue