Image shader gen support

This commit is contained in:
Isaac Marovitz
2024-07-24 12:13:40 +01:00
committed by Evan Husted
parent d9b322688c
commit 015f5d00b4
6 changed files with 162 additions and 7 deletions

View File

@@ -156,7 +156,7 @@ namespace Ryujinx.Graphics.Shader
return typeName;
}
public static string ToMslTextureType(this SamplerType type)
public static string ToMslTextureType(this SamplerType type, bool image = false)
{
string typeName;
@@ -192,7 +192,7 @@ namespace Ryujinx.Graphics.Shader
typeName += "_array";
}
return typeName + "<float>";
return $"{typeName} <float{(image ? ", access::read_write" : "")}>";
}
}
}