1
0
Fork 0
forked from suyu/suyu

Merge pull request #3080 from FernandoS27/glsl-fix

GLSLDecompiler: Correct Texture Gather Offset.
This commit is contained in:
bunnei 2019-11-08 15:56:29 -05:00 committed by GitHub
commit a056d8de16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1670,7 +1670,7 @@ private:
const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int; const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int;
return {GenerateTexture(operation, "Gather", return {GenerateTexture(operation, "Gather",
{TextureArgument{type, meta->component}, TextureAoffi{}}) + {TextureAoffi{}, TextureArgument{type, meta->component}}) +
GetSwizzle(meta->element), GetSwizzle(meta->element),
Type::Float}; Type::Float};
} }