IPipeline.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 SetPrimitiveRestart(bool enable, int index);
  31. void SetPrimitiveTopology(PrimitiveTopology topology);
  32. void SetProgram(IProgram program);
  33. void SetRenderTargetColorMasks(uint[] componentMask);
  34. void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
  35. void SetSampler(int index, ShaderStage stage, ISampler sampler);
  36. void SetStencilTest(StencilTestDescriptor stencilTest);
  37. void SetStorageBuffer(int index, ShaderStage stage, BufferRange buffer);
  38. void SetTexture(int index, ShaderStage stage, ITexture texture);
  39. void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer);
  40. void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs);
  41. void SetVertexBuffers(VertexBufferDescriptor[] vertexBuffers);
  42. void SetViewports(int first, Viewport[] viewports);
  43. void TextureBarrier();
  44. void TextureBarrierTiled();
  45. }
  46. }