mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
simplify template code like std::is_same<T>::value
This commit is contained in:
parent
c268189e38
commit
9e9a3262eb
26 changed files with 111 additions and 107 deletions
|
|
@ -497,15 +497,15 @@ template<typename T> std::string FragmentProgramDecompiler::GetSRC(T src)
|
|||
std::string ret;
|
||||
u32 precision_modifier = 0;
|
||||
|
||||
if constexpr (std::is_same<T, SRC0>::value)
|
||||
if constexpr (std::is_same_v<T, SRC0>)
|
||||
{
|
||||
precision_modifier = src1.src0_prec_mod;
|
||||
}
|
||||
else if constexpr (std::is_same<T, SRC1>::value)
|
||||
else if constexpr (std::is_same_v<T, SRC1>)
|
||||
{
|
||||
precision_modifier = src1.src1_prec_mod;
|
||||
}
|
||||
else if constexpr (std::is_same<T, SRC2>::value)
|
||||
else if constexpr (std::is_same_v<T, SRC2>)
|
||||
{
|
||||
precision_modifier = src1.src2_prec_mod;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue