From 48461f515f2619ab480b4d6c1d61deaf91e73854 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 5 Apr 2021 14:13:36 +0300 Subject: [PATCH] Output the interface block as is in the AST dump This is more useful for debugging --- source/glsl/debug.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index 9336db61..8bdce457 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -17,15 +17,8 @@ const std::string &DumpTree::apply(Stage &stage) for(std::map::const_iterator i=stage.types.begin(); i!=stage.types.end(); ++i) append(format("Type: %%%d %s", get_label(*i->second), i->first)); - set seen_interfaces; for(std::map::const_iterator i=stage.interface_blocks.begin(); i!=stage.interface_blocks.end(); ++i) - if(seen_interfaces.insert(i->second).second) - { - string text = format("Interface block: %%%d %s %s", get_label(*i->second), i->second->interface, i->second->block_name); - if(!i->second->instance_name.empty()) - text += format(" %s", i->second->instance_name); - append(text); - } + append(format("Interface block: %%%d %s", get_label(*i->second), i->first)); for(std::map::const_iterator i=stage.functions.begin(); i!=stage.functions.end(); ++i) append(format("Function: %%%d %s", get_label(*i->second), i->first)); -- 2.45.2