Asset - Scripts Get Shader Constants

Bart

WiseBart
Get Shader Constants

This free asset package allows you to get the values of the shader constants as defined by the OpenGL ES spec. It also shows how to get values from the fragment shader using surfaces.
The included script shu_get_shader_constants returns a ds_map with all the values:



This info can be useful to determine the limitations of the graphics:
  • gl_MaxDrawBuffers is the maximum number of render targets
  • gl_MaxTextureImageUnits is the maximum number of samplers in the fragment shader
 
Top