2019-10-13 02:02:07 -04:00
|
|
|
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
|
|
|
{
|
|
|
|
class GlslProgram
|
|
|
|
{
|
|
|
|
public BufferDescriptor[] CBufferDescriptors { get; }
|
|
|
|
public BufferDescriptor[] SBufferDescriptors { get; }
|
|
|
|
public TextureDescriptor[] TextureDescriptors { get; }
|
2019-10-17 22:41:18 -04:00
|
|
|
public TextureDescriptor[] ImageDescriptors { get; }
|
2019-10-13 02:02:07 -04:00
|
|
|
|
|
|
|
public string Code { get; }
|
|
|
|
|
|
|
|
public GlslProgram(
|
|
|
|
BufferDescriptor[] cBufferDescriptors,
|
|
|
|
BufferDescriptor[] sBufferDescriptors,
|
|
|
|
TextureDescriptor[] textureDescriptors,
|
2019-10-17 22:41:18 -04:00
|
|
|
TextureDescriptor[] imageDescriptors,
|
2019-10-13 02:02:07 -04:00
|
|
|
string code)
|
|
|
|
{
|
|
|
|
CBufferDescriptors = cBufferDescriptors;
|
|
|
|
SBufferDescriptors = sBufferDescriptors;
|
|
|
|
TextureDescriptors = textureDescriptors;
|
2019-10-17 22:41:18 -04:00
|
|
|
ImageDescriptors = imageDescriptors;
|
2019-10-13 02:02:07 -04:00
|
|
|
Code = code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|