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