Sets up GLuniform inputs for gpgpu calls, such as in toStep.
The uniforms are defined as callback hooks to be called on each render pass
with global context and local state objects, allowing the use of different
GL APIs or author-defined hooks.
Handles inputs of states as arrays of data-textures, or merged into one
data-texture; for arrays of textures, this arranges them on each step
so GLSL can dynamically sample the flattened array of textures by a
constant step index; otherwise the single merged texture is bound once, and
GLSL can use a dynamic step index to sample states.
Sets up
GLuniforminputs forgpgpucalls, such as intoStep.The
uniforms are defined as callback hooks to be called on each render pass with global context and local stateobjects, allowing the use of differentGLAPIs or author-defined hooks.Handles inputs of states as
arrays of data-textures, or merged into one data-texture; forarrays oftextures, this arranges them on each step soGLSLcan dynamically sample the flattenedarrayoftextures by a constant step index; otherwise the single mergedtextureis bound once, andGLSLcan use a dynamic step index to sample states.