aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/IRenderer.cs
blob: 609f05f584444cfbde9b81b48fd78a36a09a183d (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
using Ryujinx.Graphics.GAL.Sampler;
using Ryujinx.Graphics.GAL.Texture;
using Ryujinx.Graphics.Shader;

namespace Ryujinx.Graphics.GAL
{
    public interface IRenderer
    {
        IComputePipeline  ComputePipeline  { get; }
        IGraphicsPipeline GraphicsPipeline { get; }

        IWindow Window { get; }

        IShader CompileShader(ShaderProgram shader);

        IBuffer CreateBuffer(int size);

        IProgram CreateProgram(IShader[] shaders);

        ISampler CreateSampler(SamplerCreateInfo info);
        ITexture CreateTexture(TextureCreateInfo info);

        void FlushPipelines();

        Capabilities GetCapabilities();

        ulong GetCounter(CounterType type);

        void InitializeCounters();

        void ResetCounter(CounterType type);
    }
}