A shader string, or a function that
returns one when given the context and state arguments.
Optionalcontext: anyA context passed to shader if it's a function.
Optionalstate: anyA state passed to shader if it's a function.
The given shader if it's a string; otherwise if it's a
function the string returned by calling it with context and state.
Resolve a shader given as either a
stringorfunction.