mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-20 22:57:53 -05:00
Shader_IR: Correct Custom Variable assignment.
This commit is contained in:
committed by
FernandoS27
parent
7c530e0666
commit
37b8504faa
@ -1336,6 +1336,8 @@ private:
|
||||
const std::string final_offset = fmt::format("({} - {}) >> 2", real, base);
|
||||
target = {fmt::format("{}[{}]", GetGlobalMemory(gmem->GetDescriptor()), final_offset),
|
||||
Type::Uint};
|
||||
} else if (const auto cv = std::get_if<CustomVarNode>(&*dest)) {
|
||||
target = {GetCustomVariable(cv->GetIndex()), Type::Float};
|
||||
} else {
|
||||
UNREACHABLE_MSG("Assign called without a proper target");
|
||||
}
|
||||
|
Reference in New Issue
Block a user