IPipeline.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
  23. void SetDepthClamp(bool 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 SetRasterizerDiscard(bool discard);
  35. void SetRenderTargetColorMasks(uint[] componentMask);
  36. void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
  37. void SetSampler(int index, ShaderStage stage, ISampler sampler);
  38. void SetScissorEnable(int index, bool enable);
  39. void SetScissor(int index, int x, int y, int width, int height);
  40. void SetStencilTest(StencilTestDescriptor stencilTest);
  41. void SetStorageBuffer(int index, ShaderStage stage, BufferRange buffer);
  42. void SetTexture(int index, ShaderStage stage, ITexture texture);
  43. void SetUniformBuffer(int index, ShaderStage stage, BufferRange buffer);
  44. void SetUserClipDistance(int index, bool enableClip);
  45. void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs);
  46. void SetVertexBuffers(VertexBufferDescriptor[] vertexBuffers);
  47. void SetViewports(int first, Viewport[] viewports);
  48. void TextureBarrier();
  49. void TextureBarrierTiled();
  50. bool TryHostConditionalRendering(ICounterEvent value, ulong compare, bool isEqual);
  51. bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual);
  52. void EndHostConditionalRendering();
  53. }
  54. }