2018-06-24 00:39:25 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
public interface IGalShader
|
|
|
|
{
|
2019-03-04 01:45:25 +00:00
|
|
|
void Create(IGalMemory memory, long key, GalShaderType type);
|
2018-06-24 00:39:25 +00:00
|
|
|
|
2019-03-04 01:45:25 +00:00
|
|
|
void Create(IGalMemory memory, long vpAPos, long key, GalShaderType type);
|
2018-06-28 02:55:08 +00:00
|
|
|
|
2019-03-04 01:45:25 +00:00
|
|
|
IEnumerable<ShaderDeclInfo> GetConstBufferUsage(long key);
|
|
|
|
IEnumerable<ShaderDeclInfo> GetTextureUsage(long key);
|
2018-06-24 00:39:25 +00:00
|
|
|
|
2019-03-04 01:45:25 +00:00
|
|
|
void Bind(long key);
|
2018-06-24 00:39:25 +00:00
|
|
|
|
2019-03-04 01:45:25 +00:00
|
|
|
void Unbind(GalShaderType type);
|
2018-07-14 16:08:39 +00:00
|
|
|
|
2018-06-24 00:39:25 +00:00
|
|
|
void BindProgram();
|
|
|
|
}
|
|
|
|
}
|