diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-09-25 19:55:30 -0300 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2018-09-26 00:55:30 +0200 |
| commit | 2562ca6c3fe6ef328e0926c9cbcd6bb52abb328f (patch) | |
| tree | d4719ba44b7094cf4e8cf11db858b323644fd44a /Ryujinx.Graphics/Gal/IGalRenderTarget.cs | |
| parent | 7de7b559adc1924d3ff31cc58b281f70e468155f (diff) | |
Fix multiple rendertargets (#427)
* Simplify render target bindings
* Implement multiple viewports
* Pack glViewportIndexed calls into a single glViewportArray
* Use ARB_viewport_array when available
* Cache framebuffer attachments
* Use get accessors in OGLExtension
* Address feedback
Diffstat (limited to 'Ryujinx.Graphics/Gal/IGalRenderTarget.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/IGalRenderTarget.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Ryujinx.Graphics/Gal/IGalRenderTarget.cs b/Ryujinx.Graphics/Gal/IGalRenderTarget.cs index 7ccf0981..f941ccd5 100644 --- a/Ryujinx.Graphics/Gal/IGalRenderTarget.cs +++ b/Ryujinx.Graphics/Gal/IGalRenderTarget.cs @@ -2,15 +2,17 @@ namespace Ryujinx.Graphics.Gal { public interface IGalRenderTarget { - void BindColor(long Key, int Attachment, GalImage Image); + void Bind(); + + void BindColor(long Key, int Attachment); void UnbindColor(int Attachment); - void BindZeta(long Key, GalImage Image); + void BindZeta(long Key); void UnbindZeta(); - void Set(long Key); + void Present(long Key); void SetMap(int[] Map); @@ -18,7 +20,7 @@ namespace Ryujinx.Graphics.Gal void SetWindowSize(int Width, int Height); - void SetViewport(int X, int Y, int Width, int Height); + void SetViewport(int Attachment, int X, int Y, int Width, int Height); void Render(); |
