mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
cmake: simplify glslang integration (#4652)
* cmake: simplify glslang integration * Fix warning (ignored attributes), part 2
This commit is contained in:
parent
5c9d0e4b46
commit
824ad4fea7
4 changed files with 13 additions and 29 deletions
|
@ -307,20 +307,20 @@ extern bool ppu_stdcx(ppu_thread& ppu, u32 addr, u64 reg_value);
|
|||
|
||||
class ppu_scale_table_t
|
||||
{
|
||||
std::array<__m128, 32 + 31> m_data;
|
||||
std::array<v128, 32 + 31> m_data;
|
||||
|
||||
public:
|
||||
ppu_scale_table_t()
|
||||
{
|
||||
for (s32 i = -31; i < 32; i++)
|
||||
{
|
||||
m_data[i + 31] = _mm_set1_ps(static_cast<float>(std::exp2(i)));
|
||||
m_data[i + 31].vf = _mm_set1_ps(static_cast<float>(std::exp2(i)));
|
||||
}
|
||||
}
|
||||
|
||||
FORCE_INLINE __m128 operator [] (s32 scale) const
|
||||
{
|
||||
return m_data[scale + 31];
|
||||
return m_data[scale + 31].vf;
|
||||
}
|
||||
}
|
||||
const g_ppu_scale_table;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue