forked from Mirror/Ryujinx
726de8c46a
* Add multiple color outputs for fragment shaders * Add registers and gal enums * Use textures for framebuffers and split color and zeta framebuffers * Abstract texture and framebuffer targets as an image * Share images between framebuffers and textures * Unstub formats * Add some formats * Disable multiple attachments * Cache framebuffer attachments * Handle format types * Add some rendertarget formats * Code cleanup * Fixup half float types * Address feedback * Disable multiple attachments in shaders * Add A4B4G4R4 image format * Add reversed section for image enums
31 lines
No EOL
838 B
C#
31 lines
No EOL
838 B
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public interface IGalRasterizer
|
|
{
|
|
void LockCaches();
|
|
void UnlockCaches();
|
|
|
|
void ClearBuffers(
|
|
GalClearBufferFlags Flags,
|
|
int Attachment,
|
|
float Red, float Green, float Blue, float Alpha,
|
|
float Depth,
|
|
int Stencil);
|
|
|
|
bool IsVboCached(long Key, long DataSize);
|
|
|
|
bool IsIboCached(long Key, long DataSize);
|
|
|
|
void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
|
|
|
|
void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
|
|
|
|
void SetIndexArray(int Size, GalIndexFormat Format);
|
|
|
|
void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);
|
|
|
|
void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
|
|
}
|
|
} |