mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-01 01:20:14 +00:00
cd48576f58
* Implementation of query queue and host conditional rendering * Resolve some comments. * Use overloads instead of passing object. * Wake the consumer threads when incrementing syncpoints. Also, do a busy loop when awaiting the counter for a blocking flush, rather than potentially sleeping the thread. * Ensure there's a command between begin and end query.
31 lines
705 B
C#
31 lines
705 B
C#
using Ryujinx.Graphics.Shader;
|
|
using System;
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public interface IRenderer : IDisposable
|
|
{
|
|
IPipeline Pipeline { get; }
|
|
|
|
IWindow Window { get; }
|
|
|
|
IShader CompileShader(ShaderProgram shader);
|
|
|
|
IBuffer CreateBuffer(int size);
|
|
|
|
IProgram CreateProgram(IShader[] shaders);
|
|
|
|
ISampler CreateSampler(SamplerCreateInfo info);
|
|
ITexture CreateTexture(TextureCreateInfo info);
|
|
|
|
Capabilities GetCapabilities();
|
|
|
|
void UpdateCounters();
|
|
|
|
ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler);
|
|
|
|
void ResetCounter(CounterType type);
|
|
|
|
void Initialize();
|
|
}
|
|
}
|