mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-28 17:37:11 +02:00
Add a pass to turn global memory access into storage access, and do all storage related transformations on IR
This commit is contained in:
parent
d218b13ef1
commit
85a00d4d76
28 changed files with 532 additions and 282 deletions
|
@ -7,11 +7,11 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
|||
{
|
||||
static class Optimizer
|
||||
{
|
||||
public static void Optimize(BasicBlock[] blocks, ShaderStage stage)
|
||||
public static void RunPass(BasicBlock[] blocks, ShaderConfig config)
|
||||
{
|
||||
for (int blkIndex = 0; blkIndex < blocks.Length; blkIndex++)
|
||||
{
|
||||
GlobalToStorage.RunPass(blocks[blkIndex], stage);
|
||||
GlobalToStorage.RunPass(blocks[blkIndex], config);
|
||||
}
|
||||
|
||||
bool modified;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue