danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
255 stars 27 forks source link

Recent GLSL Versions (> 430) Not Recognized #26

Closed Lotharyx closed 5 years ago

Lotharyx commented 5 years ago

Installed product versions

Description

version declarations more recent than 430 are unrecognized, generating a red squiggle and "(error #106) invalid shader version number"

Steps to recreate

  1. Create a new text file in a solution, giving it one of the GLSL-recognized extensions, e.g. shader.frag
  2. Enter a version declaration newer than 430 (e.g. 450, ratified May 2017)
  3. Observe squiggle

Current behavior

Versions newer than 430 are flagged as errors, although GLSL versions 440, 450, and 460 are in public release.

Expected behavior

Versions newer than 430 should not be flagged as an error.

danielscherzer commented 5 years ago

Thanks for your feedback! This extension uses your current graphics card driver to compile. Is it possible that your current graphics card driver is only capable of OpenGL version 4.3? For example my setup: when I active my integrated intel hardware I get only 4.4 support, but when I activate my nvidia card, I can use version 4.6.

Lotharyx commented 5 years ago

Oh, yes that’s very possible. My dev platform is a few years old. Thanks for clearing that up!

danielscherzer commented 5 years ago

I have included the option to use an external compiler, like glslangValidator, so you can run edit "new" shader code on old hardware. Cheers!