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
This commit is contained in:
parent
7de7b559ad
commit
2562ca6c3f
8 changed files with 185 additions and 155 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue