vk/glsl_scraper: Use a fake GLSL version that glslang will accept
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 May 2015 18:40:24 +0000 (11:40 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 May 2015 19:21:02 +0000 (12:21 -0700)
src/vulkan/glsl_scraper.py

index 23e9b0bde1cdcf3e47b7240534b84ba174575769..2bb70ba72b7fc1b2930915f55f6728c1d72c4c07 100644 (file)
@@ -54,7 +54,7 @@ class Shader:
       spirv_fname = self.ext + '.spv'
 
       glsl_file = open(glsl_fname, 'w')
-      glsl_file.write('#version 330\n')
+      glsl_file.write('#version 420 core\n')
       glsl_file.write(self.glsl_source())
       glsl_file.close()