X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=1f43eac303bf6db2e7e6c5f705ee77a40ee23d37;hb=30c7ba8f7fd08c13562c86bf651bdc3ec8d30ab5;hp=b6a118d695218c0652624170d5107546857c6e8c;hpb=215d5bed27ad3de92557ae1b631695a036d29741;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index b6a118d6..1f43eac3 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -364,12 +364,14 @@ struct ImageTypeDeclaration: TypeDeclaration Dimensions dimensions = TWO; bool array = false; - bool sampled = true; + bool sampled = false; bool shadow = false; bool multisample = false; std::string base; + std::string format; TypeDeclaration *base_type = 0; + ImageTypeDeclaration *base_image = 0; virtual ImageTypeDeclaration *clone() const { return new ImageTypeDeclaration(*this); } virtual void visit(NodeVisitor &); @@ -488,7 +490,8 @@ struct Stage SHARED, VERTEX, GEOMETRY, - FRAGMENT + FRAGMENT, + COMPUTE }; Type type;