mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-05 01:42:03 +00:00
7e967d796c
* Stop using glTransformFeedbackVarying and use explicit layout on the shader * This is no longer needed * Shader cache version bump * Fix gl_PerVertex output for tessellation control shaders
59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
using Ryujinx.Common.Configuration;
|
|
using Ryujinx.Graphics.Shader;
|
|
using System;
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public interface IRenderer : IDisposable
|
|
{
|
|
event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
|
|
|
|
bool PreferThreading { get; }
|
|
|
|
IPipeline Pipeline { get; }
|
|
|
|
IWindow Window { get; }
|
|
|
|
void BackgroundContextAction(Action action, bool alwaysBackground = false);
|
|
|
|
IShader CompileShader(ShaderStage stage, string code);
|
|
|
|
BufferHandle CreateBuffer(int size);
|
|
|
|
IProgram CreateProgram(IShader[] shaders);
|
|
|
|
ISampler CreateSampler(SamplerCreateInfo info);
|
|
ITexture CreateTexture(TextureCreateInfo info, float scale);
|
|
|
|
void CreateSync(ulong id);
|
|
|
|
void DeleteBuffer(BufferHandle buffer);
|
|
|
|
ReadOnlySpan<byte> GetBufferData(BufferHandle buffer, int offset, int size);
|
|
|
|
Capabilities GetCapabilities();
|
|
|
|
IProgram LoadProgramBinary(byte[] programBinary);
|
|
|
|
void SetBufferData(BufferHandle buffer, int offset, ReadOnlySpan<byte> data);
|
|
|
|
void UpdateCounters();
|
|
|
|
void PreFrame();
|
|
|
|
ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler, bool hostReserved);
|
|
|
|
void ResetCounter(CounterType type);
|
|
|
|
void RunLoop(Action gpuLoop)
|
|
{
|
|
gpuLoop();
|
|
}
|
|
|
|
void WaitSync(ulong id);
|
|
|
|
void Initialize(GraphicsDebugLevel logLevel);
|
|
|
|
void Screenshot();
|
|
}
|
|
}
|