Add support for GL_ARB_shading_language_include. Usage is identical to the way GL_GOOGLE_include_directive currently works glslang (since GL_ARB_shading_language_include is inherently a runtime feature and glslang is an offline compiler). Users can simulate their runtime environment by using a custom glslang::TShader::Includer or using filenames that match their GL runtime names. Closes #249.
7 lines
283 B
Text
7 lines
283 B
Text
ERROR: 0:3: '#include' : required extension not requested: Possible extensions include:
|
|
GL_GOOGLE_include_directive
|
|
GL_ARB_shading_language_include
|
|
ERROR: 0:3: '#include' : Could not process include directive for header name: bar.h
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|