0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 17:05:45 +00:00
ryujinx-fork/Ryujinx.Graphics.GAL/IPipeline.cs

110 lines
4 KiB
C#
Raw Normal View History

using System;
2019-10-13 06:02:07 +00:00
namespace Ryujinx.Graphics.GAL
{
public interface IPipeline
2019-10-13 06:02:07 +00:00
{
void Barrier();
void BeginTransformFeedback(PrimitiveTopology topology);
void ClearBuffer(BufferHandle destination, int offset, int size, uint value);
void ClearRenderTargetColor(int index, int layer, uint componentMask, ColorF color);
2019-10-13 06:02:07 +00:00
void ClearRenderTargetDepthStencil(
int layer,
2019-10-13 06:02:07 +00:00
float depthValue,
bool depthMask,
int stencilValue,
int stencilMask);
2019-10-13 06:02:07 +00:00
void CommandBufferBarrier();
void CopyBuffer(BufferHandle source, BufferHandle destination, int srcOffset, int dstOffset, int size);
2019-12-29 17:41:50 +00:00
void DispatchCompute(int groupsX, int groupsY, int groupsZ);
2019-10-13 06:02:07 +00:00
void Draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance);
void DrawIndexed(
int indexCount,
int instanceCount,
int firstIndex,
int firstVertex,
int firstInstance);
void DrawTexture(ITexture texture, ISampler sampler, Extents2DF srcRegion, Extents2DF dstRegion);
2019-10-13 06:02:07 +00:00
void EndTransformFeedback();
void MultiDrawIndirectCount(BufferRange indirectBuffer, BufferRange parameterBuffer, int maxDrawCount, int stride);
void MultiDrawIndexedIndirectCount(BufferRange indirectBuffer, BufferRange parameterBuffer, int maxDrawCount, int stride);
void SetAlphaTest(bool enable, float reference, CompareOp op);
2019-12-29 17:41:50 +00:00
void SetBlendState(int index, BlendDescriptor blend);
2019-10-13 06:02:07 +00:00
void SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
void SetDepthClamp(bool clamp);
void SetDepthMode(DepthMode mode);
2019-10-13 06:02:07 +00:00
void SetDepthTest(DepthTestDescriptor depthTest);
void SetFaceCulling(bool enable, Face face);
void SetFrontFace(FrontFace frontFace);
2019-12-29 17:41:50 +00:00
void SetIndexBuffer(BufferRange buffer, IndexType type);
void SetImage(int binding, ITexture texture, Format imageFormat);
2019-12-29 17:41:50 +00:00
void SetLineParameters(float width, bool smooth);
void SetLogicOpState(bool enable, LogicalOp op);
void SetPatchParameters(int vertices, ReadOnlySpan<float> defaultOuterLevel, ReadOnlySpan<float> defaultInnerLevel);
void SetPointParameters(float size, bool isProgramPointSize, bool enablePointSprite, Origin origin);
2020-02-01 23:19:46 +00:00
void SetPolygonMode(PolygonMode frontMode, PolygonMode backMode);
2019-10-13 06:02:07 +00:00
void SetPrimitiveRestart(bool enable, int index);
void SetPrimitiveTopology(PrimitiveTopology topology);
2019-12-29 17:41:50 +00:00
void SetProgram(IProgram program);
void SetRasterizerDiscard(bool discard);
void SetRenderTargetScale(float scale);
void SetRenderTargetColorMasks(ReadOnlySpan<uint> componentMask);
2019-10-13 06:02:07 +00:00
void SetRenderTargets(ITexture[] colors, ITexture depthStencil);
void SetSampler(int binding, ISampler sampler);
2019-12-29 17:41:50 +00:00
2021-01-26 21:44:07 +00:00
void SetScissor(int index, bool enable, int x, int y, int width, int height);
2019-10-13 06:02:07 +00:00
void SetStencilTest(StencilTestDescriptor stencilTest);
void SetStorageBuffers(int first, ReadOnlySpan<BufferRange> buffers);
2019-12-29 17:41:50 +00:00
void SetTexture(int binding, ITexture texture);
2019-12-29 17:41:50 +00:00
void SetTransformFeedbackBuffers(ReadOnlySpan<BufferRange> buffers);
void SetUniformBuffers(int first, ReadOnlySpan<BufferRange> buffers);
2019-12-29 17:41:50 +00:00
void SetUserClipDistance(int index, bool enableClip);
void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs);
void SetVertexBuffers(ReadOnlySpan<VertexBufferDescriptor> vertexBuffers);
2019-12-29 17:41:50 +00:00
void SetViewports(int first, ReadOnlySpan<Viewport> viewports, bool disableTransform);
void TextureBarrier();
void TextureBarrierTiled();
bool TryHostConditionalRendering(ICounterEvent value, ulong compare, bool isEqual);
bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual);
void EndHostConditionalRendering();
void UpdateRenderScale(ReadOnlySpan<float> scales, int totalCount, int fragmentCount);
2019-10-13 06:02:07 +00:00
}
}