Hybrid View

shader source names

glsl should provide for means to Name source buffers either inside a given source or provide another mechanism to Name source-buffers, so that source-names can be shown in shader-info-logs instead of the source-index.

Technically, that's not what he asked for. He's talking about compiling multiple strings within a shader, such that each individual string has its own name. Like giving GLSL a #name directive that tells the compiler to use that name when it would have used a string index.

Right - and when source-buffers can be named that way, maybe there is a way to keep them in memory by user request.
That would be a way to realize #include-statements despite of the fact that there is no filesystem interaction.