mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 11:03:04 +00:00
Dirty Arg Buffers on Program Change
This commit is contained in:
parent
de5bf3a141
commit
ab79959975
2 changed files with 6 additions and 4 deletions
|
@ -27,8 +27,10 @@ namespace Ryujinx.Graphics.Metal
|
|||
Textures = 1 << 12,
|
||||
Images = 1 << 13,
|
||||
|
||||
RenderAll = RenderPipeline | DepthStencil | DepthClamp | DepthBias | CullMode | FrontFace | StencilRef | Viewports | Scissors | Uniforms | Storages | Textures | Images,
|
||||
ComputeAll = ComputePipeline | Uniforms | Storages | Textures | Images,
|
||||
ArgBuffers = Uniforms | Storages | Textures | Images,
|
||||
|
||||
RenderAll = RenderPipeline | DepthStencil | DepthClamp | DepthBias | CullMode | FrontFace | StencilRef | Viewports | Scissors | ArgBuffers,
|
||||
ComputeAll = ComputePipeline | ArgBuffers,
|
||||
All = RenderAll | ComputeAll,
|
||||
}
|
||||
|
||||
|
|
|
@ -346,13 +346,13 @@ namespace Ryujinx.Graphics.Metal
|
|||
{
|
||||
_currentState.RenderProgram = prg;
|
||||
|
||||
_currentState.Dirty |= DirtyFlags.RenderPipeline;
|
||||
_currentState.Dirty |= DirtyFlags.RenderPipeline | DirtyFlags.ArgBuffers;
|
||||
}
|
||||
else if (prg.ComputeFunction != IntPtr.Zero)
|
||||
{
|
||||
_currentState.ComputeProgram = prg;
|
||||
|
||||
_currentState.Dirty |= DirtyFlags.ComputePipeline;
|
||||
_currentState.Dirty |= DirtyFlags.ComputePipeline | DirtyFlags.ArgBuffers;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue