X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.cpp;h=e20d6c262eae2525a0a979922c800e9956f39f18;hp=931578640b94fc4f874b25648dfef01fd0330c0d;hb=4c805f55d89919d6971d600102ab4d6d65d56dc3;hpb=a82fcc462550d63a101aca4313807b1320789a5a diff --git a/source/glsl/syntax.cpp b/source/glsl/syntax.cpp index 93157864..e20d6c26 100644 --- a/source/glsl/syntax.cpp +++ b/source/glsl/syntax.cpp @@ -237,6 +237,39 @@ void InterfaceLayout::visit(NodeVisitor &visitor) } +BasicTypeDeclaration::BasicTypeDeclaration(): + kind(ALIAS), + size(0), + base_type(0) +{ } + +BasicTypeDeclaration::BasicTypeDeclaration(const BasicTypeDeclaration &other): + TypeDeclaration(other), + kind(other.kind), + size(other.size), + base(other.base), + base_type(0) +{ } + +void BasicTypeDeclaration::visit(NodeVisitor &visitor) +{ + visitor.visit(*this); +} + + +ImageTypeDeclaration::ImageTypeDeclaration(): + dimensions(TWO), + array(false), + sampled(true), + shadow(false) +{ } + +void ImageTypeDeclaration::visit(NodeVisitor &visitor) +{ + visitor.visit(*this); +} + + StructDeclaration::StructDeclaration() { members.use_braces = true;