Age | Commit message (Collapse) | Author |
|
The existing shader api only supports caller-provided uniforms
and attributes at instantiation time, with no ability to
introspect what uniforms are actually actively present in a given
shader.
This commit adds introspection of the active uniforms for a given
shader at creation time, as well as when reloaded, keeping the
information around to be accessed via shader_active_uniforms().
The immediate impetus for this is supporting runtime discovery of
uniforms present in the shader source, with the intention of
exposing these as sequencer tracks for external manipulation.
|
|
This needs to be done after every shader pogram rebuild,
even if the uniforms and everything are unchanged.
|
|
This is nothing to write home about, but it provides a little sandbox for
developing shader-generated textures in the spirit of shadertoy or the
demoscene tool bonzomatic.
It's more oriented towards developing shaders for use with libstage in
the small games I've been hacking on.
|