X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fspirv.h;h=669342f36a5bb3297bb76ac8a9e8e74913d210bb;hp=26467bcd15a3941858ceb82b6bf3cc1eb0fc4c84;hb=3a1b9cbe2441ae670a97541dc8ccb0a2860c8302;hpb=584cf5e42c4758a3f4d197655d861d31ee23db4e diff --git a/source/glsl/spirv.h b/source/glsl/spirv.h index 26467bcd..669342f3 100644 --- a/source/glsl/spirv.h +++ b/source/glsl/spirv.h @@ -1,5 +1,5 @@ -#ifndef MSP_GL_SL_SPIRV -#define MSP_GL_SL_SPIRV +#ifndef MSP_GL_SL_SPIRV_H_ +#define MSP_GL_SL_SPIRV_H_ #include #include @@ -30,7 +30,8 @@ private: char arg_types[5]; char extension[13]; Word opcode; - UInt8 arg_order[4]; + std::uint8_t arg_order[4]; + Word capability; void (SpirVGenerator::*handler)(FunctionCall &, const std::vector &); }; @@ -79,6 +80,7 @@ private: std::map declared_ids; std::map declared_uniform_ids; std::map standard_type_ids; + std::map image_type_ids; std::map array_type_ids; std::map pointer_type_ids; std::map function_type_ids; @@ -148,6 +150,7 @@ private: virtual void visit(FunctionCall &); void visit_constructor(FunctionCall &, const std::vector &, bool); void visit_builtin_matrix_comp_mult(FunctionCall &, const std::vector &); + void visit_builtin_texture_query(FunctionCall &, const std::vector &); void visit_builtin_texture(FunctionCall &, const std::vector &); void visit_builtin_texel_fetch(FunctionCall &, const std::vector &); void visit_builtin_interpolate(FunctionCall &, const std::vector &);