Commit 3fb64c6a by Jamie Madill Committed by Commit Bot

Vulkan: Fix counting for shader texture bindings.

Vulkan prefers to use a single binding for each texture array. Previously we were reserving binding space for array elements. Doesn't immediately fix any tests but allows more tests to pass in subsequent CLs. Bug: angleproject:2494 Change-Id: I238d4e6f491bfa6daf04dde24f8111c8418cd59c Reviewed-on: https://chromium-review.googlesource.com/1101570 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarLuc Ferron <lucferron@chromium.org> Reviewed-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
parent a58d69e9
...@@ -254,7 +254,7 @@ gl::LinkResult GlslangWrapper::linkProgram(const gl::Context *glContext, ...@@ -254,7 +254,7 @@ gl::LinkResult GlslangWrapper::linkProgram(const gl::Context *glContext,
InsertQualifierSpecifierString(&fragmentSource, samplerName, ""); InsertQualifierSpecifierString(&fragmentSource, samplerName, "");
} }
textureCount += samplerUniform.getBasicTypeElementCount(); textureCount++;
} }
for (const gl::UnusedUniform &unusedUniform : resources.unusedUniforms) for (const gl::UnusedUniform &unusedUniform : resources.unusedUniforms)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment