glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Link-time optimizations?

Open AbigailBuccaneer opened this issue 10 years ago • 0 comments

Being able to optimize individual shaders is great, but it would be even better if a fragment and vertex shader could be optimized at the same time - this would allow, for example, removing vertex shader code that writes to a varying that's not read by the fragment shader.

I don't know if Mesa's shader compiler/linker does this at all, but if so it'd be great to have that functionality exposed in glsl-optimizer.

AbigailBuccaneer avatar Apr 04 '14 10:04 AbigailBuccaneer