Module Lit.Renderer.Cap

module Cap: sig .. end
Renderer capabilities.


Renderer capabilities and limits


val shader_stages : Lit.renderer -> Lit.Prog.shader_stage list
shader_stages r is the list of shader stages supported by the renderer.
val max_samples : Lit.renderer -> int
val max_tex_size : Lit.renderer -> int
val max_render_buffer_size : Lit.renderer -> int

OpenGL implementation information


type gl_version = [ `GL of int * int * int | `GLES of int * int * int | `Unknown ] 
The type for GL versions.
val pp_gl_version : Format.formatter -> gl_version -> unit
pp_gl_version ppf v prints an unspecified representation of v on ppf.
val gl_version : Lit.renderer -> gl_version
gl_version r is the OpenGL version number of r.
val glsl_version : Lit.renderer -> gl_version
gl_version r is the shading language version number of r.
val gl_renderer : Lit.renderer -> string
gl_renderer r is the OpenGL renderer of r.
val gl_vendor : Lit.renderer -> string
gl_vendor r is the OpenGL renderer vendor of r.
val pp_gl_synopsis : Format.formatter -> Lit.renderer -> unit
pp_gl_synopsis ppf r prints a short two lines summary of the OpenGL implementation r is dealing with.