Improve shader sending method to GAL, use a memory interface instead of reading a fixed array size and sending every time
This commit is contained in:
parent
84996ccd36
commit
79e0070363
12 changed files with 72 additions and 63 deletions
|
@ -89,9 +89,9 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
};
|
||||
}
|
||||
|
||||
public GlslProgram Decompile(int[] Code, GalShaderType ShaderType)
|
||||
public GlslProgram Decompile(IGalMemory Memory, long Position, GalShaderType ShaderType)
|
||||
{
|
||||
ShaderIrBlock Block = ShaderDecoder.DecodeBasicBlock(Code, 0);
|
||||
ShaderIrBlock Block = ShaderDecoder.DecodeBasicBlock(Memory, Position);
|
||||
|
||||
ShaderIrNode[] Nodes = Block.GetNodes();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue