Skip to content

Vulkan Scene Graph’s Fork of glslang Repo and Future Development Plans #1159

Answered by robertosfield
turp2twin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nik,

Thanks for reaching out.

The VulkanSceneGraph uses glslang to compile GLSL shaders at runtime to facilitate runtime shader composition. The VSG like the OpenSceneGraph(OSG) before adds to GLSL use #pragma to let the scene graph backends know what code shader paths are available for control - so features can be toggled on/off by passing in #defines, I coined the phrase "#pragma(tic) shader composition" when I came up with a long way back - over a decade ago. The VSG also can pre-compile to SPIR-V a set of different combinations of defines to avoid the need to compile at runtime, but there are always shader compile paths that may be required for applications so having the option to …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by robertosfield
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants