mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Implemented vfsLocalDir & vfsDirBase.
Improved ThreadBase. Minor fixes.
This commit is contained in:
parent
16c284214f
commit
beb19633e9
16 changed files with 187 additions and 53 deletions
|
|
@ -133,10 +133,11 @@ std::string GLFragmentDecompilerThread::AddCond(int fp16)
|
|||
|
||||
std::string GLFragmentDecompilerThread::AddConst()
|
||||
{
|
||||
if(m_parr.HasParam(PARAM_UNIFORM, "vec4", std::string("fc") + std::to_string(m_size + 4 * 4)))
|
||||
{
|
||||
return std::string("fc") + std::to_string(m_size + 4 * 4);
|
||||
}
|
||||
std::string name = std::string("fc") + std::to_string(m_size + 4 * 4);
|
||||
if(m_parr.HasParam(PARAM_UNIFORM, "vec4", name))
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
mem32_ptr_t data(m_addr + m_size + m_offset);
|
||||
|
||||
|
|
@ -145,7 +146,7 @@ std::string GLFragmentDecompilerThread::AddConst()
|
|||
u32 y = GetData(data[1]);
|
||||
u32 z = GetData(data[2]);
|
||||
u32 w = GetData(data[3]);
|
||||
return m_parr.AddParam(PARAM_UNIFORM, "vec4", std::string("fc") + std::to_string(m_size + 4 * 4),
|
||||
return m_parr.AddParam(PARAM_UNIFORM, "vec4", name,
|
||||
std::string("vec4(") + std::to_string((float&)x) + ", " + std::to_string((float&)y)
|
||||
+ ", " + std::to_string((float&)z) + ", " + std::to_string((float&)w) + ")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue