diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-22 14:07:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-22 14:07:19 -0700 |
| commit | 376e61abe84ed386df7aa28867c1aeb5f52881ca (patch) | |
| tree | ebf5575829ef9bedc9d43821cd556fe596bf2724 /source/slang/emit.cpp | |
| parent | 30fbf640cd4cd6936e177fdfadb76e8814cffffc (diff) | |
| parent | edf8cafe6d3799f58a92ccc83ba70dd41c461f6a (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.cpp | 5 |
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; |
