]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Use extended alignment in SPIR-V struct layout when necessary
[libs/gl.git] / source / glsl / syntax.h
index a1c62d4b11aa2a97f5ff2b17af1bed66e51a028c..7a372dc59e2402d5f1872da7aa24415c66c1e783 100644 (file)
@@ -354,6 +354,7 @@ struct BasicTypeDeclaration: TypeDeclaration
        Kind kind = ALIAS;
        unsigned size = 0;
        bool sign = true;
+       bool extended_alignment = false;
        std::string base;
 
        TypeDeclaration *base_type = 0;
@@ -390,6 +391,7 @@ struct ImageTypeDeclaration: TypeDeclaration
 struct StructDeclaration: TypeDeclaration
 {
        Block members;
+       bool extended_alignment = false;
 
        InterfaceBlock *interface_block = 0;