2019-10-13 08:02:07 +02:00
|
|
|
using Ryujinx.Graphics.Shader;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
2019-10-18 04:41:18 +02:00
|
|
|
public interface IPipeline
|
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);
|
|
|
|
|
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);
|
|
|
|
|
2019-12-29 18:41:50 +01:00
|
|
|
void SetBlendState(int index, BlendDescriptor blend);
|
|
|
|
|
2019-10-13 08:02:07 +02:00
|
|
|
void SetBlendColor(ColorF color);
|
|
|
|
|
|
|
|
void SetDepthBias(PolygonModeMask enables, float factor, float units, float 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);
|
|
|
|
|
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);
|
|
|
|
|
2019-10-13 08:02:07 +02:00
|
|
|
void SetRenderTargetColorMasks(uint[] componentMask);
|
|
|
|
|
|
|
|
void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
|
|
|
|
|
2019-12-29 18:41:50 +01:00
|
|
|
void SetSampler(int index, ShaderStage stage, ISampler sampler);
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer);
|
|
|
|
|
|
|
|
void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs);
|
|
|
|
void SetVertexBuffers(VertexBufferDescriptor[] vertexBuffers);
|
|
|
|
|
2019-10-13 08:02:07 +02:00
|
|
|
void SetViewports(int first, Viewport[] viewports);
|
2019-10-18 04:41:18 +02:00
|
|
|
|
|
|
|
void TextureBarrier();
|
|
|
|
void TextureBarrierTiled();
|
2019-10-13 08:02:07 +02:00
|
|
|
}
|
|
|
|
}
|