mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 17:10:19 +00:00
SPIR-V: Fix field index for scale count
This commit is contained in:
parent
0b27b3e470
commit
670431f4fa
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||||
if (context.Config.Stage == ShaderStage.Vertex)
|
if (context.Config.Stage == ShaderStage.Vertex)
|
||||||
{
|
{
|
||||||
var scaleCountPointerType = context.TypePointer(StorageClass.Uniform, context.TypeS32());
|
var scaleCountPointerType = context.TypePointer(StorageClass.Uniform, context.TypeS32());
|
||||||
var scaleCountElemPointer = context.AccessChain(scaleCountPointerType, context.SupportBuffer, context.Constant(context.TypeU32(), 3));
|
var scaleCountElemPointer = context.AccessChain(scaleCountPointerType, context.SupportBuffer, context.Constant(context.TypeU32(), 2));
|
||||||
var scaleCount = context.Load(context.TypeS32(), scaleCountElemPointer);
|
var scaleCount = context.Load(context.TypeS32(), scaleCountElemPointer);
|
||||||
|
|
||||||
scaleIndex = context.IAdd(context.TypeU32(), scaleIndex, scaleCount);
|
scaleIndex = context.IAdd(context.TypeU32(), scaleIndex, scaleCount);
|
||||||
|
|
Loading…
Reference in a new issue