mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
PixelShaderGen: Use bit shifts instead of multiplications as a small optimization.
This commit is contained in:
parent
036a8c6951
commit
8b8bb04fd3
1 changed files with 8 additions and 8 deletions
|
@ -101,10 +101,10 @@ static const char *tevKSelTableA[] = // KASEL
|
||||||
|
|
||||||
static const char *tevScaleTable[] = // CS
|
static const char *tevScaleTable[] = // CS
|
||||||
{
|
{
|
||||||
"*1", // SCALE_1
|
"", // SCALE_1
|
||||||
"*2", // SCALE_2
|
" << 1", // SCALE_2
|
||||||
"*4", // SCALE_4
|
" << 2", // SCALE_4
|
||||||
"/ 2", // DIVIDE_2
|
" >> 1", // DIVIDE_2
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *tevBiasTable[] = // TB
|
static const char *tevBiasTable[] = // TB
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue