Motivation
VTK.js contains two shader generation systems. Both build GPU source by splicing strings into templates at markers of the form //VTK::Section::Slot. Both implement the same rendering features independently, one in GLSL and one in WGSL.
Detailed Description
Shader Language replaces both with a single typed graph that describes what a shader means, backends decide how to say it. A rendering feature is written once. The compiler decides the language, the stage, the resource layout, and the varyings.
Motivation
VTK.js contains two shader generation systems. Both build GPU source by splicing strings into templates at markers of the form
//VTK::Section::Slot. Both implement the same rendering features independently, one in GLSL and one in WGSL.Detailed Description
Shader Language replaces both with a single typed graph that describes what a shader means, backends decide how to say it. A rendering feature is written once. The compiler decides the language, the stage, the resource layout, and the varyings.