aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/IGalRasterizer.cs
blob: 0c5d37e40eef5fe67f886a61e043a768ab9b75bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
namespace Ryujinx.Graphics.Gal
{
    public interface IGalRasterizer
    {
        void LockCaches();
        void UnlockCaches();

        void ClearBuffers(GalClearBufferFlags Flags);

        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, byte[] Buffer);

        void CreateIbo(long Key, byte[] Buffer);

        void SetVertexArray(int Stride, long VboKey, GalVertexAttrib[] Attribs);

        void SetIndexArray(int Size, GalIndexFormat Format);

        void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);

        void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
    }
}