aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/IGalRasterizer.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-08-10 01:09:40 -0300
committergdkchan <gab.dark.100@gmail.com>2018-08-10 01:09:40 -0300
commit25dd5f4238d898120f2f65c4d5d5b9c192ce1e10 (patch)
tree347a58054594d9236fd9c3fa1432e0ee45b99949 /Ryujinx.Graphics/Gal/IGalRasterizer.cs
parent652238f526509ed54e1c0ba2e953097ef7b2501c (diff)
Low level graphics API prerequisites (#319)
* Add GalPipelineState and IGalPipeline * Separate UploadVertex call * Add ConstBuffer cache * Move Vertex Assembly into GalPipelineState * Move Uniform binds to GalPipelineState * Move framebuffer flip into a buffer * Rebase * Fix regression * Move clear values from VertexEndGl to ClearBuffers * Rename obscure names O->Old S->New
Diffstat (limited to 'Ryujinx.Graphics/Gal/IGalRasterizer.cs')
-rw-r--r--Ryujinx.Graphics/Gal/IGalRasterizer.cs42
1 files changed, 5 insertions, 37 deletions
diff --git a/Ryujinx.Graphics/Gal/IGalRasterizer.cs b/Ryujinx.Graphics/Gal/IGalRasterizer.cs
index a87d36c3..89e50b1f 100644
--- a/Ryujinx.Graphics/Gal/IGalRasterizer.cs
+++ b/Ryujinx.Graphics/Gal/IGalRasterizer.cs
@@ -7,52 +7,20 @@ namespace Ryujinx.Graphics.Gal
void LockCaches();
void UnlockCaches();
- void ClearBuffers(GalClearBufferFlags Flags);
+ void ClearBuffers(
+ GalClearBufferFlags Flags,
+ float Red, float Green, float Blue, float Alpha,
+ float Depth,
+ int Stencil);
bool IsVboCached(long Key, long DataSize);
bool IsIboCached(long Key, long DataSize);
- void SetFrontFace(GalFrontFace FrontFace);
-
- void EnableCullFace();
-
- void DisableCullFace();
-
- void SetCullFace(GalCullFace CullFace);
-
- void EnableDepthTest();
-
- void DisableDepthTest();
-
- void SetDepthFunction(GalComparisonOp Func);
-
- void SetClearDepth(float Depth);
-
- void EnableStencilTest();
-
- void DisableStencilTest();
-
- void SetStencilFunction(bool IsFrontFace, GalComparisonOp Func, int Ref, int Mask);
-
- void SetStencilOp(bool IsFrontFace, GalStencilOp Fail, GalStencilOp ZFail, GalStencilOp ZPass);
-
- void SetStencilMask(bool IsFrontFace, int Mask);
-
- void SetClearStencil(int Stencil);
-
- void EnablePrimitiveRestart();
-
- void DisablePrimitiveRestart();
-
- void SetPrimitiveRestartIndex(uint Index);
-
void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
- void SetVertexArray(int Stride, long VboKey, GalVertexAttrib[] Attribs);
-
void SetIndexArray(int Size, GalIndexFormat Format);
void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);