2019-10-13 02:02:07 -04:00
|
|
|
using Ryujinx.Graphics.Shader;
|
2020-05-23 05:46:09 -04:00
|
|
|
using System;
|
2019-10-13 02:02:07 -04:00
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
2019-10-17 22:41:18 -04:00
|
|
|
public interface IPipeline
|
2019-10-13 02:02:07 -04:00
|
|
|
{
|
2020-01-12 17:12:40 -05:00
|
|
|
void Barrier();
|
|
|
|
|
2020-07-14 23:01:10 -04:00
|
|
|
void BeginTransformFeedback(PrimitiveTopology topology);
|
|
|
|
|
2021-01-12 16:50:54 -05:00
|
|
|
void ClearBuffer(BufferHandle destination, int offset, int size, uint value);
|
|
|
|
|
2019-10-13 02:02:07 -04:00
|
|
|
void ClearRenderTargetColor(int index, uint componentMask, ColorF color);
|
|
|
|
|
|
|
|
void ClearRenderTargetDepthStencil(
|
|
|
|
float depthValue,
|
|
|
|
bool depthMask,
|
|
|
|
int stencilValue,
|
|
|
|
int stencilMask);
|
|
|
|
|
2020-05-23 05:46:09 -04:00
|
|
|
void CopyBuffer(BufferHandle source, BufferHandle destination, int srcOffset, int dstOffset, int size);
|
|
|
|
|
2019-12-29 12:41:50 -05:00
|
|
|
void DispatchCompute(int groupsX, int groupsY, int groupsZ);
|
2019-10-17 22:41:18 -04:00
|
|
|
|
2019-10-13 02:02:07 -04: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-14 23:01:10 -04:00
|
|
|
void EndTransformFeedback();
|
|
|
|
|
2020-07-28 17:30:08 -04:00
|
|
|
void SetAlphaTest(bool enable, float reference, CompareOp op);
|
|
|
|
|
2019-12-29 12:41:50 -05:00
|
|
|
void SetBlendState(int index, BlendDescriptor blend);
|
|
|
|
|
2019-10-13 02:02:07 -04:00
|
|
|
void SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
|
2020-04-29 21:47:24 -04:00
|
|
|
void SetDepthClamp(bool clamp);
|
2019-12-06 23:54:28 -05:00
|
|
|
void SetDepthMode(DepthMode mode);
|
2019-10-13 02:02:07 -04:00
|
|
|
void SetDepthTest(DepthTestDescriptor depthTest);
|
|
|
|
|
|
|
|
void SetFaceCulling(bool enable, Face face);
|
|
|
|
|
|
|
|
void SetFrontFace(FrontFace frontFace);
|
|
|
|
|
2019-12-29 12:41:50 -05:00
|
|
|
void SetIndexBuffer(BufferRange buffer, IndexType type);
|
|
|
|
|
2020-11-08 06:10:00 -05:00
|
|
|
void SetImage(int binding, ITexture texture, Format imageFormat);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2020-07-10 13:23:15 -04:00
|
|
|
void SetLogicOpState(bool enable, LogicalOp op);
|
|
|
|
|
2020-07-20 20:59:13 -04:00
|
|
|
void SetPointParameters(float size, bool isProgramPointSize, bool enablePointSprite, Origin origin);
|
2020-02-01 18:19:46 -05:00
|
|
|
|
2019-10-13 02:02:07 -04:00
|
|
|
void SetPrimitiveRestart(bool enable, int index);
|
|
|
|
|
|
|
|
void SetPrimitiveTopology(PrimitiveTopology topology);
|
|
|
|
|
2019-12-29 12:41:50 -05:00
|
|
|
void SetProgram(IProgram program);
|
|
|
|
|
2020-04-07 05:19:45 -04:00
|
|
|
void SetRasterizerDiscard(bool discard);
|
|
|
|
|
2020-07-06 22:41:07 -04:00
|
|
|
void SetRenderTargetScale(float scale);
|
2020-05-23 05:46:09 -04:00
|
|
|
void SetRenderTargetColorMasks(ReadOnlySpan<uint> componentMask);
|
2019-10-13 02:02:07 -04:00
|
|
|
void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
|
|
|
|
|
2020-11-08 06:10:00 -05:00
|
|
|
void SetSampler(int binding, ISampler sampler);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2021-01-26 16:44:07 -05:00
|
|
|
void SetScissor(int index, bool enable, int x, int y, int width, int height);
|
2020-03-28 23:02:58 -04:00
|
|
|
|
2019-10-13 02:02:07 -04:00
|
|
|
void SetStencilTest(StencilTestDescriptor stencilTest);
|
|
|
|
|
2020-11-08 06:10:00 -05:00
|
|
|
void SetStorageBuffers(ReadOnlySpan<BufferRange> buffers);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2020-11-08 06:10:00 -05:00
|
|
|
void SetTexture(int binding, ITexture texture);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2020-10-25 16:23:42 -04:00
|
|
|
void SetTransformFeedbackBuffers(ReadOnlySpan<BufferRange> buffers);
|
2020-11-08 06:10:00 -05:00
|
|
|
void SetUniformBuffers(ReadOnlySpan<BufferRange> buffers);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2020-05-03 22:04:49 -04:00
|
|
|
void SetUserClipDistance(int index, bool enableClip);
|
|
|
|
|
2020-05-23 05:46:09 -04:00
|
|
|
void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs);
|
|
|
|
void SetVertexBuffers(ReadOnlySpan<VertexBufferDescriptor> vertexBuffers);
|
2019-12-29 12:41:50 -05:00
|
|
|
|
2020-05-23 05:46:09 -04:00
|
|
|
void SetViewports(int first, ReadOnlySpan<Viewport> viewports);
|
2019-10-17 22:41:18 -04:00
|
|
|
|
|
|
|
void TextureBarrier();
|
|
|
|
void TextureBarrierTiled();
|
2020-05-03 22:24:59 -04:00
|
|
|
|
|
|
|
bool TryHostConditionalRendering(ICounterEvent value, ulong compare, bool isEqual);
|
|
|
|
bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual);
|
|
|
|
void EndHostConditionalRendering();
|
2020-07-06 22:41:07 -04:00
|
|
|
|
2020-11-02 14:53:23 -05:00
|
|
|
void UpdateRenderScale(ShaderStage stage, float[] scales, int textureCount, int imageCount);
|
2019-10-13 02:02:07 -04:00
|
|
|
}
|
|
|
|
}
|