ShaderSource::Glsl { defines }
is underdocumented
#2964
Labels
area: documentation
Documentation for crate items, public or private
help required
We need community help to make this happen.
type: enhancement
New feature or request
The documentation of
ShaderSource::Glsl
says:This only vaguely describes the purpose (What is a “feature”? How does a shader have them? What does “unlock” mean, formally?) but it does not tell the user what format of input to give it, or what to do if they are not using this functionality.
I would assume this does something equivalent to prepending
format!("#define {key} {value}\n")
to the shader source, but if so, it should say that — there's no need to be abstract, since we're talking about the specific language GLSL.The text was updated successfully, but these errors were encountered: