summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-22 14:07:19 -0700
committerGitHub <noreply@github.com>2017-07-22 14:07:19 -0700
commit376e61abe84ed386df7aa28867c1aeb5f52881ca (patch)
treeebf5575829ef9bedc9d43821cd556fe596bf2724 /source/slang/emit.cpp
parent30fbf640cd4cd6936e177fdfadb76e8814cffffc (diff)
parentedf8cafe6d3799f58a92ccc83ba70dd41c461f6a (diff)
Merge pull request #136 from tfoleyNV/explicit-sampler-fix
Make the "hack" sampler explicit for now
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 61e473c7d..5a59674f5 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -3848,7 +3848,10 @@ String emitEntryPoint(
if (sharedContext.needHackSamplerForTexelFetch)
{
- finalResultBuilder << "layout(set = 0, binding = 0) uniform sampler SLANG_hack_samplerForTexelFetch;\n";
+ finalResultBuilder
+ << "layout(set = 0, binding = "
+ << programLayout->bindingForHackSampler
+ << ") uniform sampler SLANG_hack_samplerForTexelFetch;\n";
}
finalResultBuilder << code;