mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-10 16:51:44 +00:00
31 lines
No EOL
821 B
C#
31 lines
No EOL
821 B
C#
using Ryujinx.Graphics.GAL;
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Shader
|
|
{
|
|
/// <summary>
|
|
/// Cached compute shader code.
|
|
/// </summary>
|
|
class ComputeShader
|
|
{
|
|
/// <summary>
|
|
/// Host shader program object.
|
|
/// </summary>
|
|
public IProgram HostProgram { get; set; }
|
|
|
|
/// <summary>
|
|
/// Cached shader.
|
|
/// </summary>
|
|
public CachedShader Shader { get; }
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the compute shader.
|
|
/// </summary>
|
|
/// <param name="hostProgram">Host shader program</param>
|
|
/// <param name="shader">Cached shader</param>
|
|
public ComputeShader(IProgram hostProgram, CachedShader shader)
|
|
{
|
|
HostProgram = hostProgram;
|
|
Shader = shader;
|
|
}
|
|
}
|
|
} |