X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fdebug.cpp;h=dd9db2f8ff760bdd92cd8e37fa24baa8141ee865;hp=ef9e3e0eafc325a92f3bf389329c3efb3563b738;hb=a1ba04add302e7712d127b46d8d11386987a0aea;hpb=4c6f1a526ed949f6c9f4c3a57c036b3cdb1aaa91 diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index ef9e3e0e..dd9db2f8 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -393,7 +393,7 @@ void DumpTree::visit(InterfaceBlock &block) void DumpTree::visit(FunctionDeclaration &func) { - string text = format("%%%d %s %s", get_label(func), func.return_type, func.name); + string text = format("%%%d %s %s%s", get_label(func), func.return_type, func.name, (func.signature.empty() ? "(?)" : func.signature)); if(func.source==BUILTIN_SOURCE) text += " (builtin)"; else if(!func.definition) @@ -401,6 +401,8 @@ void DumpTree::visit(FunctionDeclaration &func) append(text); begin_sub(); + if(func.return_type_declaration) + append(format("Return type: %%%d %s", get_label(*func.return_type_declaration), func.return_type_declaration->name)); for(NodeArray::const_iterator i=func.parameters.begin(); i!=func.parameters.end(); ++i) (*i)->visit(*this); last_branch();