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 <post@arntzen-software.no>2020-07-29 12:58:32 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-07-29 13:48:41 +0300
commitaac6885950468bfe2ac9a906d028f0552bc451bc (patch)
tree637b58b3a34720aff83d1eed10e6dad404b2a038 /spirv_reflect.cpp
parent038b0bf23849a57a0d7d4e86ff5f17be1c5fe1f9 (diff)
GLSL: Be more aggressive about using type_alias.
To facilitate an improved linking-by-name use case for older GL, we will be more aggressive about merging struct definitions, even for rather unrelated cases where we don't strictly need to use type aliases.
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r--spirv_reflect.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/spirv_reflect.cpp b/spirv_reflect.cpp
index e8891651..cf025aa5 100644
--- a/spirv_reflect.cpp
+++ b/spirv_reflect.cpp
@@ -267,7 +267,6 @@ string CompilerReflection::compile()
json_stream = std::make_shared<simple_json::Stream>();
json_stream->set_current_locale_radix_character(current_locale_radix_character);
json_stream->begin_json_object();
- fixup_type_alias();
reorder_type_alias();
emit_entry_points();
emit_types();
@@ -327,9 +326,6 @@ void CompilerReflection::emit_type(uint32_t type_id, bool &emitted_open_tag)
auto &type = get<SPIRType>(type_id);
auto name = type_to_glsl(type);
- if (type.type_alias != TypeID(0))
- return;
-
if (!emitted_open_tag)
{
json_stream->emit_json_key_object("types");