shadertools: Prepare for new target Languages and APIs (#2465)
* shadertools: Prepare for new target Langugaes and APIs This improves shader tools command line by adding support for target language and api. * Address gdkchan's comments
This commit is contained in:
parent
ca5ac37cd6
commit
97a2133207
5 changed files with 87 additions and 19 deletions
|
@ -7,11 +7,21 @@ namespace Ryujinx.Graphics.Shader
|
|||
public ShaderStage Stage { get; }
|
||||
|
||||
public string Code { get; private set; }
|
||||
public byte[] BinaryCode { get; }
|
||||
|
||||
public ShaderProgram(ShaderStage stage, string code)
|
||||
private ShaderProgram(ShaderStage stage)
|
||||
{
|
||||
Stage = stage;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public ShaderProgram(ShaderStage stage, string code) : this(stage)
|
||||
{
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public ShaderProgram(ShaderStage stage, byte[] binaryCode) : this(stage)
|
||||
{
|
||||
BinaryCode = binaryCode;
|
||||
}
|
||||
|
||||
public void Prepend(string line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue