]> git.tdb.fi Git - libs/gl.git/commitdiff
Redesign the way shader programs are loaded
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 14:23:07 +0000 (16:23 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2021 14:23:07 +0000 (16:23 +0200)
Vulkan uses SPIR-V modules which can be specialized so there has to be a
way to keep the module around.  A module can also contain multiple shader
stages.  The abstraction for individual stages with the Shader class is
outdated and has been replaced with Module.

GLSL code is stored in the Module in combined form and split into stages
when loaded to a Program.


No differences found