IPipeline.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Ryujinx.Graphics.Shader;
  2. namespace Ryujinx.Graphics.GAL
  3. {
  4. public interface IPipeline
  5. {
  6. void Barrier();
  7. void ClearRenderTargetColor(int index, uint componentMask, ColorF color);
  8. void ClearRenderTargetDepthStencil(
  9. float depthValue,
  10. bool depthMask,
  11. int stencilValue,
  12. int stencilMask);
  13. void DispatchCompute(int groupsX, int groupsY, int groupsZ);
  14. void Draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance);
  15. void DrawIndexed(
  16. int indexCount,
  17. int instanceCount,
  18. int firstIndex,
  19. int firstVertex,
  20. int firstInstance);
  21. void SetBlendState(int index, BlendDescriptor blend);
  22. void SetBlendColor(ColorF color);
  23. void SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
  24. void SetDepthMode(DepthMode mode);
  25. void SetDepthTest(DepthTestDescriptor depthTest);
  26. void SetFaceCulling(bool enable, Face face);
  27. void SetFrontFace(FrontFace frontFace);
  28. void SetIndexBuffer(BufferRange buffer, IndexType type);
  29. void SetImage(int index, ShaderStage stage, ITexture texture);
  30. void SetPointSize(float size);
  31. void SetPrimitiveRestart(bool enable, int index);
  32. void SetPrimitiveTopology(PrimitiveTopology topology);
  33. void SetProgram(IProgram program);
  34. void SetRenderTargetColorMasks(uint[] componentMask);
  35. void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
  36. void SetSampler(int index, ShaderStage stage, ISampler sampler);
  37. void SetStencilTest(StencilTestDescriptor stencilTest);
  38. void SetStorageBuffer(int index, ShaderStage stage, BufferRange buffer);
  39. void SetTexture(int index, ShaderStage stage, ITexture texture);
  40. void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer);
  41. void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs);
  42. void SetVertexBuffers(VertexBufferDescriptor[] vertexBuffers);
  43. void SetViewports(int first, Viewport[] viewports);
  44. void TextureBarrier();
  45. void TextureBarrierTiled();
  46. }
  47. }