2020-05-23 03:46:09 -06:00
|
|
|
using System;
|
2019-10-13 00:02:07 -06:00
|
|
|
|
|
|
|
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();
|
|
|
|
|
2020-07-14 21:01:10 -06:00
|
|
|
void BeginTransformFeedback(PrimitiveTopology topology);
|
|
|
|
|
2021-01-12 14:50:54 -07:00
|
|
|
void ClearBuffer(BufferHandle destination, int offset, int size, uint value);
|
|
|
|
|
2022-06-14 10:30:39 -06:00
|
|
|
void ClearRenderTargetColor(int index, int layer, uint componentMask, ColorF color);
|
2019-10-13 00:02:07 -06:00
|
|
|
|
|
|
|
void ClearRenderTargetDepthStencil(
|
2022-06-14 10:30:39 -06:00
|
|
|
int layer,
|
2019-10-13 00:02:07 -06:00
|
|
|
float depthValue,
|
2022-01-11 12:15:17 -07:00
|
|
|
bool depthMask,
|
|
|
|
int stencilValue,
|
|
|
|
int stencilMask);
|
2019-10-13 00:02:07 -06:00
|
|
|
|
2021-08-26 15:50:28 -06:00
|
|
|
void CommandBufferBarrier();
|
|
|
|
|
2020-05-23 03:46:09 -06:00
|
|
|
void CopyBuffer(BufferHandle source, BufferHandle destination, int srcOffset, int dstOffset, int size);
|
|
|
|
|
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);
|
2021-11-10 11:37:49 -07:00
|
|
|
void DrawTexture(ITexture texture, ISampler sampler, Extents2DF srcRegion, Extents2DF dstRegion);
|
2019-10-13 00:02:07 -06:00
|
|
|
|
2020-07-14 21:01:10 -06:00
|
|
|
void EndTransformFeedback();
|
|
|
|
|
2021-08-26 15:50:28 -06:00
|
|
|
void MultiDrawIndirectCount(BufferRange indirectBuffer, BufferRange parameterBuffer, int maxDrawCount, int stride);
|
|
|
|
void MultiDrawIndexedIndirectCount(BufferRange indirectBuffer, BufferRange parameterBuffer, int maxDrawCount, int stride);
|
|
|
|
|
2020-07-28 15:30:08 -06:00
|
|
|
void SetAlphaTest(bool enable, float reference, CompareOp op);
|
|
|
|
|
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);
|
|
|
|
|
2020-11-08 04:10:00 -07:00
|
|
|
void SetImage(int binding, ITexture texture, Format imageFormat);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2021-10-18 15:38:04 -06:00
|
|
|
void SetLineParameters(float width, bool smooth);
|
|
|
|
|
2020-07-10 11:23:15 -06:00
|
|
|
void SetLogicOpState(bool enable, LogicalOp op);
|
|
|
|
|
2021-10-18 15:38:04 -06:00
|
|
|
void SetPatchParameters(int vertices, ReadOnlySpan<float> defaultOuterLevel, ReadOnlySpan<float> defaultInnerLevel);
|
2020-07-20 18:59:13 -06:00
|
|
|
void SetPointParameters(float size, bool isProgramPointSize, bool enablePointSprite, Origin origin);
|
2020-02-01 16:19:46 -07:00
|
|
|
|
2021-10-18 15:38:04 -06:00
|
|
|
void SetPolygonMode(PolygonMode frontMode, PolygonMode backMode);
|
|
|
|
|
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);
|
|
|
|
|
2020-07-06 20:41:07 -06:00
|
|
|
void SetRenderTargetScale(float scale);
|
2020-05-23 03:46:09 -06:00
|
|
|
void SetRenderTargetColorMasks(ReadOnlySpan<uint> componentMask);
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
|
|
|
|
|
2020-11-08 04:10:00 -07:00
|
|
|
void SetSampler(int binding, ISampler sampler);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2021-01-26 14:44:07 -07:00
|
|
|
void SetScissor(int index, bool enable, int x, int y, int width, int height);
|
2020-03-28 21:02:58 -06:00
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
void SetStencilTest(StencilTestDescriptor stencilTest);
|
|
|
|
|
2021-08-11 13:33:43 -06:00
|
|
|
void SetStorageBuffers(int first, ReadOnlySpan<BufferRange> buffers);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2020-11-08 04:10:00 -07:00
|
|
|
void SetTexture(int binding, ITexture texture);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2020-10-25 14:23:42 -06:00
|
|
|
void SetTransformFeedbackBuffers(ReadOnlySpan<BufferRange> buffers);
|
2021-08-11 13:33:43 -06:00
|
|
|
void SetUniformBuffers(int first, ReadOnlySpan<BufferRange> buffers);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2020-05-03 20:04:49 -06:00
|
|
|
void SetUserClipDistance(int index, bool enableClip);
|
|
|
|
|
2020-05-23 03:46:09 -06:00
|
|
|
void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs);
|
|
|
|
void SetVertexBuffers(ReadOnlySpan<VertexBufferDescriptor> vertexBuffers);
|
2019-12-29 10:41:50 -07:00
|
|
|
|
2022-05-12 07:47:13 -06:00
|
|
|
void SetViewports(int first, ReadOnlySpan<Viewport> viewports, bool disableTransform);
|
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();
|
2020-07-06 20:41:07 -06:00
|
|
|
|
2022-01-08 10:48:48 -07:00
|
|
|
void UpdateRenderScale(ReadOnlySpan<float> scales, int totalCount, int fragmentCount);
|
2019-10-13 00:02:07 -06:00
|
|
|
}
|
|
|
|
}
|