2019-10-13 00:02:07 -06:00
|
|
|
using Ryujinx.Graphics.Shader;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
2019-10-17 20:41:18 -06:00
|
|
|
public interface IPipeline
|
2019-10-13 00:02:07 -06:00
|
|
|
{
|
2020-01-12 15:12:40 -07:00
|
|
|
void Barrier();
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void ClearRenderTargetColor(int index, uint componentMask, ColorF color);
|
|
|
|
|
|
|
|
void ClearRenderTargetDepthStencil(
|
|
|
|
float depthValue,
|
|
|
|
bool depthMask,
|
|
|
|
int stencilValue,
|
|
|
|
int stencilMask);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void DispatchCompute(int groupsX, int groupsY, int groupsZ);
|
2019-10-17 20:41:18 -06:00
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void Draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance);
|
|
|
|
void DrawIndexed(
|
|
|
|
int indexCount,
|
|
|
|
int instanceCount,
|
|
|
|
int firstIndex,
|
|
|
|
int firstVertex,
|
|
|
|
int firstInstance);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetBlendState(int index, BlendDescriptor blend);
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
|
2020-04-29 19:47:24 -06:00
|
|
|
void SetDepthClamp(bool clamp);
|
2019-12-06 21:54:28 -07:00
|
|
|
void SetDepthMode(DepthMode mode);
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetDepthTest(DepthTestDescriptor depthTest);
|
|
|
|
|
|
|
|
void SetFaceCulling(bool enable, Face face);
|
|
|
|
|
|
|
|
void SetFrontFace(FrontFace frontFace);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetIndexBuffer(BufferRange buffer, IndexType type);
|
|
|
|
|
|
|
|
void SetImage(int index, ShaderStage stage, ITexture texture);
|
|
|
|
|
2020-02-01 16:19:46 -07:00
|
|
|
void SetPointSize(float size);
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetPrimitiveRestart(bool enable, int index);
|
|
|
|
|
|
|
|
void SetPrimitiveTopology(PrimitiveTopology topology);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetProgram(IProgram program);
|
|
|
|
|
2020-04-07 03:19:45 -06:00
|
|
|
void SetRasterizerDiscard(bool discard);
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetRenderTargetColorMasks(uint[] componentMask);
|
|
|
|
|
|
|
|
void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetSampler(int index, ShaderStage stage, ISampler sampler);
|
|
|
|
|
2020-03-28 21:02:58 -06:00
|
|
|
void SetScissorEnable(int index, bool enable);
|
|
|
|
void SetScissor(int index, int x, int y, int width, int height);
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetStencilTest(StencilTestDescriptor stencilTest);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetStorageBuffer(int index, ShaderStage stage, BufferRange buffer);
|
|
|
|
|
|
|
|
void SetTexture(int index, ShaderStage stage, ITexture texture);
|
|
|
|
|
|
|
|
void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer);
|
|
|
|
|
2020-05-03 20:04:49 -06:00
|
|
|
void SetUserClipDistance(int index, bool enableClip);
|
|
|
|
|
2019-12-29 10:41:50 -07:00
|
|
|
void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs);
|
|
|
|
void SetVertexBuffers(VertexBufferDescriptor[] vertexBuffers);
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetViewports(int first, Viewport[] viewports);
|
2019-10-17 20:41:18 -06:00
|
|
|
|
|
|
|
void TextureBarrier();
|
|
|
|
void TextureBarrierTiled();
|
2020-05-03 20:24:59 -06:00
|
|
|
|
|
|
|
bool TryHostConditionalRendering(ICounterEvent value, ulong compare, bool isEqual);
|
|
|
|
bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual);
|
|
|
|
void EndHostConditionalRendering();
|
2019-10-13 00:02:07 -06:00
|
|
|
}
|
|
|
|
}
|