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