mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
add: vertex and instance id arguments
This commit is contained in:
parent
c3a9a0d625
commit
6095f14646
1 changed files with 7 additions and 0 deletions
|
|
@ -113,6 +113,13 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: add these only if they are used
|
||||
if (stage == ShaderStage.Vertex)
|
||||
{
|
||||
args = args.Append("uint vertex_id [[vertex_id]]").ToArray();
|
||||
args = args.Append("uint instance_id [[instance_id]]").ToArray();
|
||||
}
|
||||
|
||||
foreach (var constantBuffer in context.Properties.ConstantBuffers.Values)
|
||||
{
|
||||
var varType = constantBuffer.Type.Fields[0].Type & ~AggregateType.Array;
|
||||
|
|
|
|||
Loading…
Reference in a new issue