X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.h;h=51b4f00a683059579157297c1ca9803e7aff9994;hp=a1ab51f254a771566c337f7b392484a3984a4157;hb=cc5483cc709fdf7b6966a3e69dabfcafebaaffa0;hpb=577a93f39f9b4d0f5101cd2f539fc774e7b06825 diff --git a/source/glsl/compiler.h b/source/glsl/compiler.h index a1ab51f2..51b4f00a 100644 --- a/source/glsl/compiler.h +++ b/source/glsl/compiler.h @@ -17,7 +17,8 @@ public: enum Mode { MODULE, - PROGRAM + PROGRAM, + SPIRV }; private: @@ -88,6 +89,10 @@ public: GLSL suitable for OpenGL or an external GLSL compiler. */ std::string get_stage_glsl(Stage::Type) const; + /** Returns a combined SPIR-V binary for all shader stages. The result is + suitable for use with OpenGL or Vulkan. */ + std::vector get_combined_spirv() const; + /** Returns a map of vertex attribute locations. If the target GLSL version supports interface layouts, the map is empty (locations are included in the GLSL soucre). */