mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-03 18:32:26 -07:00
Clone the state & flip viewport vertically (#16)
* implement texture get data * reset all state before blit & clone state * format * support blit regions * implement source region for blit * replace bottom with top * account for 0 size * support image flipping * revert presentation fixes & y flip * revert * flip viewport vertically * switch face winding * comment * use SetBytes for texture clear * implement missing compute builtins * change storage and texture buffer alignment * correct compute builtins * don't use nullable for textures and samplers * remove incorrect texture get data implementation * Cleanup IntPtrs --------- Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
@@ -51,6 +51,11 @@ namespace Ryujinx.Graphics.Metal
|
||||
_encoderStateManager.SaveState();
|
||||
}
|
||||
|
||||
public void SaveAndResetState()
|
||||
{
|
||||
_encoderStateManager.SaveAndResetState();
|
||||
}
|
||||
|
||||
public void RestoreState()
|
||||
{
|
||||
_encoderStateManager.RestoreState();
|
||||
@@ -242,7 +247,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
|
||||
public void ClearRenderTargetDepthStencil(int layer, int layerCount, float depthValue, bool depthMask, int stencilValue, int stencilMask)
|
||||
{
|
||||
_helperShader.ClearDepthStencil([depthValue], depthMask, stencilValue, stencilMask);
|
||||
_helperShader.ClearDepthStencil(depthValue, depthMask, stencilValue, stencilMask);
|
||||
}
|
||||
|
||||
public void CommandBufferBarrier()
|
||||
|
Reference in New Issue
Block a user