mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-12 06:42:33 -07:00
don't hardcode texture type
This commit is contained in:
@@ -135,8 +135,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
||||
|
||||
foreach (var texture in context.Properties.Textures.Values)
|
||||
{
|
||||
// TODO: don't use always texture2d
|
||||
args = args.Append($"texture2d<float> tex_{texture.Name} [[texture({texture.Binding})]]").ToArray();
|
||||
var textureTypeName = texture.Type.ToMslTextureType();
|
||||
args = args.Append($"{textureTypeName} tex_{texture.Name} [[texture({texture.Binding})]]").ToArray();
|
||||
args = args.Append($"sampler samp_{texture.Name} [[sampler({texture.Binding})]]").ToArray();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user