X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fdebug.cpp;h=b3eabd75de3c2aacab570ef6531b4ba4ce556fa5;hb=f08bd843fbe63a0bf5bcbc21308f2751d08f00c1;hp=32eb0ec307a05db3904e2313f74008e0127a32c3;hpb=33dcf183c6394b403b340095f0cf6ac58bd8090d;p=libs%2Fgl.git diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index 32eb0ec3..b3eabd75 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -12,10 +12,6 @@ const std::string &DumpTree::apply(Stage &stage) { formatted = format("Stage %s\n", Stage::get_stage_name(stage.type)); tree.push_back(BRANCH); - for(map::const_iterator i=stage.in_variables.begin(); i!=stage.in_variables.end(); ++i) - append(format("Input: %%%d %s %s", get_label(*i->second), i->second->type, i->first)); - for(map::const_iterator i=stage.out_variables.begin(); i!=stage.out_variables.end(); ++i) - append(format("Output: %%%d %s %s", get_label(*i->second), i->second->type, i->first)); last_branch(); stage.content.visit(*this); return formatted; @@ -88,6 +84,9 @@ void DumpTree::visit(Block &block) for(std::map::const_iterator i=block.variables.begin(); i!=block.variables.end(); ++i) append(format("Variable %%%d %s %s", get_label(*i->second), i->second->type, i->first)); + for(std::set::const_iterator i=block.interfaces.begin(); i!=block.interfaces.end(); ++i) + append(format("Interface %%%d %s %s", get_label(*i->second), i->second->interface, i->second->name)); + bool labeled_body = (!block.types.empty() || !block.variables.empty()); if(labeled_body) {