diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-03 18:09:35 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-03 18:09:35 -0800 |
| commit | e90dfcfd6a0a6d92688012b1216c46c24965cfc0 (patch) | |
| tree | 89b1e0e3f0e95ea0bf586bd67fa36066f0021ce7 /source/slang/parameter-binding.cpp | |
| parent | 5da16a6360e40b9fd4d2275a5ef5b1af740c4abb (diff) | |
| parent | 550405d2de2ca617046e73fe5ec7e5e1765a5c97 (diff) | |
Merge pull request #349 from csyonghe/master
Add API for querying TypeLayout from a Type
Diffstat (limited to 'source/slang/parameter-binding.cpp')
| -rw-r--r-- | source/slang/parameter-binding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp index 6145015f1..6dac47631 100644 --- a/source/slang/parameter-binding.cpp +++ b/source/slang/parameter-binding.cpp @@ -1786,6 +1786,8 @@ void generateParameterBindings( return; RefPtr<ProgramLayout> programLayout = new ProgramLayout(); + programLayout->targetRequest = targetReq; + targetReq->layout = programLayout; // Create a context to hold shared state during the process @@ -2061,6 +2063,7 @@ RefPtr<ProgramLayout> specializeProgramLayout( { RefPtr<ProgramLayout> newProgramLayout; newProgramLayout = new ProgramLayout(); + newProgramLayout->targetRequest = targetReq; newProgramLayout->bindingForHackSampler = programLayout->bindingForHackSampler; newProgramLayout->hackSamplerVar = programLayout->hackSamplerVar; newProgramLayout->globalGenericParams = programLayout->globalGenericParams; |
