summaryrefslogtreecommitdiffstats
path: root/source/slang/compiler.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-19 08:49:58 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-19 08:49:58 -0700
commitefedd5e6d0d935ed5baa8d9c6596465fc89ce13c (patch)
tree8c7e631bf126855cd217076eddeea04c44a8f3fb /source/slang/compiler.cpp
parent4c3d56a304de60ce722bee8418da929ae8895adc (diff)
Fixes for how parameter block names are set up.
We generate implicit names for global-scope parameter blocks (including HLSL `cbuffer`s, since the "name" the user sees is really just for reflection purposes), but this had a few problems: - We used the generated names for parameter-binding purposes - Except for a GLSL block with an explicit name, in which case we'd use the internal name and not the reflection name for matching - The generated named didn't match between GLSL and HLSL/Slang declarations This change tries to fix both of these issues. I changed the name generation to try to make it identical between HLSL and GLSL (to the extent we can control it), just in case. But then I also went and changed the parameter-binding-generation logic to use the *reflection* name instead of the internal name when deciding if things are the "same" parameter.
Diffstat (limited to 'source/slang/compiler.cpp')
0 files changed, 0 insertions, 0 deletions