X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fdebug.cpp;h=ef7e81f68af289943e7348a81edc8eb407637cf6;hb=0585e361d8714ac4efc3ae3e1d5c8c9aa8841c34;hp=5ee30e0996c4dfc6ff5331d1c1b200f472c6fcf1;hpb=b23a9af95c65c01d949153fc49e5091aaa7c3d30;p=libs%2Fgl.git diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index 5ee30e09..ef7e81f6 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -349,6 +349,8 @@ void DumpTree::visit(BasicTypeDeclaration &type) branches.emplace_back(format("Vector: %d", type.size)); else if(type.kind==BasicTypeDeclaration::MATRIX) branches.emplace_back(format("Matrix: %dx%d", type.size&0xFFFF, type.size>>16)); + if(type.extended_alignment) + branches.emplace_back("Extended alignment"); append_subtree(branches); } @@ -370,7 +372,11 @@ void DumpTree::visit(ImageTypeDeclaration &type) void DumpTree::visit(StructDeclaration &strct) { append(strct, format("%s struct %s", get_label(strct), strct.name)); - append_subtree(strct.members); + vector branches; + if(strct.extended_alignment) + branches.emplace_back("Extended alignment"); + branches.emplace_back(&strct.members); + append_subtree(branches); } void DumpTree::visit(VariableDeclaration &var)