mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Implement shader LEA instruction and improve bindless image load/store (#1355)
This commit is contained in:
parent
4c3a1106ec
commit
99a6e8a61c
7 changed files with 82 additions and 43 deletions
|
@ -4,12 +4,12 @@ namespace Ryujinx.Graphics.Shader.Decoders
|
|||
{
|
||||
public static bool Extract(this int value, int lsb)
|
||||
{
|
||||
return ((int)(value >> lsb) & 1) != 0;
|
||||
return ((value >> lsb) & 1) != 0;
|
||||
}
|
||||
|
||||
public static int Extract(this int value, int lsb, int length)
|
||||
{
|
||||
return (int)(value >> lsb) & (int)(uint.MaxValue >> (32 - length));
|
||||
return (value >> lsb) & (int)(uint.MaxValue >> (32 - length));
|
||||
}
|
||||
|
||||
public static bool Extract(this long value, int lsb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue