mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-23 18:52:09 +00:00
1968386808
* Add locking methods to the ogl resource cache * Remove some unused arguments * Add the ZF32 texture format
60 lines
No EOL
1.5 KiB
C#
60 lines
No EOL
1.5 KiB
C#
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public interface IGalRasterizer
|
|
{
|
|
void LockCaches();
|
|
void UnlockCaches();
|
|
|
|
void ClearBuffers(GalClearBufferFlags Flags);
|
|
|
|
bool IsVboCached(long Key, long DataSize);
|
|
|
|
bool IsIboCached(long Key, long DataSize);
|
|
|
|
void SetFrontFace(GalFrontFace FrontFace);
|
|
|
|
void EnableCullFace();
|
|
|
|
void DisableCullFace();
|
|
|
|
void SetCullFace(GalCullFace CullFace);
|
|
|
|
void EnableDepthTest();
|
|
|
|
void DisableDepthTest();
|
|
|
|
void SetDepthFunction(GalComparisonOp Func);
|
|
|
|
void SetClearDepth(float Depth);
|
|
|
|
void EnableStencilTest();
|
|
|
|
void DisableStencilTest();
|
|
|
|
void SetStencilFunction(bool IsFrontFace, GalComparisonOp Func, int Ref, int Mask);
|
|
|
|
void SetStencilOp(bool IsFrontFace, GalStencilOp Fail, GalStencilOp ZFail, GalStencilOp ZPass);
|
|
|
|
void SetStencilMask(bool IsFrontFace, int Mask);
|
|
|
|
void SetClearStencil(int Stencil);
|
|
|
|
void EnablePrimitiveRestart();
|
|
|
|
void DisablePrimitiveRestart();
|
|
|
|
void SetPrimitiveRestartIndex(uint Index);
|
|
|
|
void CreateVbo(long Key, byte[] Buffer);
|
|
|
|
void CreateIbo(long Key, byte[] Buffer);
|
|
|
|
void SetVertexArray(int Stride, long VboKey, GalVertexAttrib[] Attribs);
|
|
|
|
void SetIndexArray(int Size, GalIndexFormat Format);
|
|
|
|
void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);
|
|
|
|
void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
|
|
}
|
|
} |