2019-11-14 10:26:40 -08:00
|
|
|
using Ryujinx.Graphics.GAL;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Shader
|
|
|
|
{
|
2019-12-30 20:46:57 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Cached compute shader code.
|
|
|
|
/// </summary>
|
2019-11-14 10:26:40 -08:00
|
|
|
class ComputeShader
|
|
|
|
{
|
2019-12-30 20:46:57 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Host shader program object.
|
|
|
|
/// </summary>
|
2020-01-05 08:40:21 -08:00
|
|
|
public IProgram HostProgram { get; }
|
2019-11-14 10:26:40 -08:00
|
|
|
|
2019-12-30 20:46:57 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Cached shader.
|
|
|
|
/// </summary>
|
2019-11-14 10:26:40 -08:00
|
|
|
public CachedShader Shader { get; }
|
|
|
|
|
2019-12-30 20:46:57 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Creates a new instance of the compute shader.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="hostProgram">Host shader program</param>
|
|
|
|
/// <param name="shader">Cached shader</param>
|
2019-11-14 10:26:40 -08:00
|
|
|
public ComputeShader(IProgram hostProgram, CachedShader shader)
|
|
|
|
{
|
|
|
|
HostProgram = hostProgram;
|
|
|
|
Shader = shader;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|