mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-02 16:50:20 -07:00

* Simplify handling of shader vertex A * Theres no transformation feedback, its transform * Merge TextureHandlesForCache
22 lines
438 B
C#
22 lines
438 B
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public class ShaderProgram
|
|
{
|
|
public ShaderStage Stage { get; }
|
|
|
|
public string Code { get; private set; }
|
|
|
|
public ShaderProgram(ShaderStage stage, string code)
|
|
{
|
|
Stage = stage;
|
|
Code = code;
|
|
}
|
|
|
|
public void Prepend(string line)
|
|
{
|
|
Code = line + Environment.NewLine + Code;
|
|
}
|
|
}
|
|
} |