]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Use the sampled image type for OpImageQueryLod
[libs/gl.git] / source / glsl / syntax.h
index 95347e1bbb5831deaf9ffceb58cc1e196df25cde..b6a118d695218c0652624170d5107546857c6e8c 100644 (file)
@@ -219,11 +219,11 @@ struct Assignment: BinaryExpression
                        ARRAY = 0xC0
                };
 
-               Statement *declaration = 0;
+               VariableDeclaration *declaration = 0;
                std::uint8_t chain_len = 0;
                std::uint8_t chain[7] = { };
 
-               Target(Statement *d = 0): declaration(d) { }
+               Target(VariableDeclaration *d = 0): declaration(d) { }
 
                bool operator<(const Target &) const;
        };
@@ -366,6 +366,7 @@ struct ImageTypeDeclaration: TypeDeclaration
        bool array = false;
        bool sampled = true;
        bool shadow = false;
+       bool multisample = false;
        std::string base;
 
        TypeDeclaration *base_type = 0;