No matching definitions.

glsl/types

src/glsl/types.tur
defn

glsl-type

(glsl-type [kw :cstr] :cstr)

map a Turmeric type keyword to a GLSL type string.

kwTurmeric type keyword, e.g. ":float", ":vec3", ":mat4", ":sampler-2d"

GLSL type string, e.g. "float", "vec3", "mat4", "sampler2D". Returns kw with the leading ':' stripped for unknown keywords.

(glsl-type ":vec3")      ; => "vec3"
  (glsl-type ":sampler-2d") ; => "sampler2D"

Since: v0.1.0