mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-10 15:11:43 +00:00
e6eeb6f09f
* Add WIP support for Vertex Program A, add the FADD_I32 shader instruction, small fix on FFMA_I encoding, nits * Add separate subroutines for program A/B, and copy attributes to a temp * Move finalization code to main * Add new line after flip uniform on the shader * Handle possible case where VPB uses an output attribute written by VPA but not available on the vbo * Address PR feedback
23 lines
No EOL
561 B
C#
23 lines
No EOL
561 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public interface IGalShader
|
|
{
|
|
void Create(IGalMemory Memory, long Key, GalShaderType Type);
|
|
|
|
void Create(IGalMemory Memory, long VpAPos, long Key, GalShaderType Type);
|
|
|
|
IEnumerable<ShaderDeclInfo> GetTextureUsage(long Key);
|
|
|
|
void SetConstBuffer(long Key, int Cbuf, byte[] Data);
|
|
|
|
void EnsureTextureBinding(string UniformName, int Value);
|
|
|
|
void SetFlip(float X, float Y);
|
|
|
|
void Bind(long Key);
|
|
|
|
void BindProgram();
|
|
}
|
|
} |