X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=66fed6e83f058d83b476d777a45cb43947703c72;hb=d3a41542c4982d6df08b5e6f969267f9c8889f9f;hp=597a48e4b39bf47f8e78c9b781006238a071a167;hpb=8f5f54a9e165dae424e5b0bb8e488c3d01849bf6;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 597a48e4..66fed6e8 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -187,6 +187,7 @@ struct MemberAccess: Expression std::string member; VariableDeclaration *declaration; + int index; MemberAccess(); MemberAccess(const MemberAccess &); @@ -313,6 +314,8 @@ struct Layout: Node std::string name; bool has_value; int value; + + Qualifier(): has_value(false), value(0) { } }; std::vector qualifiers; @@ -532,6 +535,8 @@ struct Stage std::map interface_blocks; std::map functions; std::map locations; + std::map texture_bindings; + std::map uniform_block_bindings; Features required_features; std::vector diagnostics;