mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-17 00:06:08 +00:00
gl_shader_decompiler: Fold flow_var constant into GetFlowVariable()
This is only ever used within this function, so we can narrow it's scope down.
This commit is contained in:
parent
2f2ab9b5bc
commit
04a1161354
|
@ -2271,10 +2271,8 @@ private:
|
||||||
ShaderWriter code;
|
ShaderWriter code;
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr std::string_view flow_var = "flow_var_";
|
|
||||||
|
|
||||||
std::string GetFlowVariable(u32 i) {
|
std::string GetFlowVariable(u32 i) {
|
||||||
return fmt::format("{}{}", flow_var, i);
|
return fmt::format("flow_var_{}", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExprDecompiler {
|
class ExprDecompiler {
|
||||||
|
|
Loading…
Reference in a new issue