glsl/types
src/glsl/types.tur
defn
glsl-type
(glsl-type [kw :cstr] :cstr)
map a Turmeric type keyword to a GLSL type string.
Parameters
| kw | Turmeric type keyword, e.g. ":float", ":vec3", ":mat4", ":sampler-2d" |
Returns
GLSL type string, e.g. "float", "vec3", "mat4", "sampler2D". Returns kw with the leading ':' stripped for unknown keywords.
Example
(glsl-type ":vec3") ; => "vec3" (glsl-type ":sampler-2d") ; => "sampler2D"
Since: v0.1.0