Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <hans-kristian.arntzen@arm.com>2018-11-22 12:23:58 +0300
committerHans-Kristian Arntzen <hans-kristian.arntzen@arm.com>2018-11-22 12:23:58 +0300
commit9aa623a553b84c89305270a0381ffa437f9e7838 (patch)
treec0e79682c14ed4514a42d884544b8bddeb26a90c /spirv_cross_parsed_ir.cpp
parent25883092907e7e8f300a32fd7e4848295ba7d903 (diff)
Remove old hack for dealing with HLSL counter buffers.
No longer needed.
Diffstat (limited to 'spirv_cross_parsed_ir.cpp')
-rw-r--r--spirv_cross_parsed_ir.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/spirv_cross_parsed_ir.cpp b/spirv_cross_parsed_ir.cpp
index df24a1e3..67c58b48 100644
--- a/spirv_cross_parsed_ir.cpp
+++ b/spirv_cross_parsed_ir.cpp
@@ -88,21 +88,6 @@ void ParsedIR::set_name(uint32_t id, const string &name)
if (name.empty())
return;
- // glslang uses identifiers to pass along meaningful information
- // about HLSL reflection.
- // FIXME: This should be deprecated eventually.
- auto &m = meta[id];
- if (source.hlsl && name.size() >= 6 && name.find("@count") == name.size() - 6)
- {
- m.hlsl_magic_counter_buffer_candidate = true;
- m.hlsl_magic_counter_buffer_name = name.substr(0, name.find("@count"));
- }
- else
- {
- m.hlsl_magic_counter_buffer_candidate = false;
- m.hlsl_magic_counter_buffer_name.clear();
- }
-
// Reserved for temporaries.
if (name[0] == '_' && name.size() >= 2 && isdigit(name[1]))
return;
@@ -196,7 +181,7 @@ void ParsedIR::set_decoration(uint32_t id, Decoration decoration, uint32_t argum
case DecorationHlslCounterBufferGOOGLE:
meta[id].hlsl_magic_counter_buffer = argument;
- meta[id].hlsl_is_magic_counter_buffer = true;
+ meta[argument].hlsl_is_magic_counter_buffer = true;
break;
default: