2019-11-14 13:26:40 -05:00
|
|
|
using Ryujinx.Graphics.GAL;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Shader
|
|
|
|
{
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Cached compute shader code.
|
|
|
|
/// </summary>
|
2019-11-14 13:26:40 -05:00
|
|
|
class ComputeShader
|
|
|
|
{
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Host shader program object.
|
|
|
|
/// </summary>
|
2020-01-05 11:40:21 -05:00
|
|
|
public IProgram HostProgram { get; }
|
2019-11-14 13:26:40 -05:00
|
|
|
|
2019-12-30 23:46:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Cached shader.
|
|
|
|
/// </summary>
|
2019-11-14 13:26:40 -05:00
|
|
|
public CachedShader Shader { get; }
|
|
|
|
|
2019-12-30 23:46:57 -05: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 13:26:40 -05:00
|
|
|
public ComputeShader(IProgram hostProgram, CachedShader shader)
|
|
|
|
{
|
|
|
|
HostProgram = hostProgram;
|
|
|
|
Shader = shader;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|