gl-0.9: Complete OpenGL raw bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Ext.ARB.ShaderSubroutine

Synopsis

Extension Support

gl_ARB_shader_subroutine :: Bool Source #

Checks that the GL_ARB_shader_subroutine extension is available.

GL_ARB_shader_subroutine

glGetActiveSubroutineName :: MonadIO m => GLuint -> GLenum -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m () Source #

Usage: glGetActiveSubroutineName program shadertype index bufsize length name

The length of length should be 1.

The length of name should be bufsize.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetActiveSubroutineName.xhtml

glGetActiveSubroutineUniformName :: MonadIO m => GLuint -> GLenum -> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m () Source #

Usage: glGetActiveSubroutineUniformName program shadertype index bufsize length name

The length of length should be 1.

The length of name should be bufsize.

Manual page: https://www.opengl.org/sdk/docs/man/html/glGetActiveSubroutineUniformName.xhtml

glGetActiveSubroutineUniformiv :: MonadIO m => GLuint -> GLenum -> GLuint -> GLenum -> Ptr GLint -> m () Source #

Usage: glGetActiveSubroutineUniformiv program shadertype index pname values

The length of values should be COMPSIZE(pname).

glGetProgramStageiv :: MonadIO m => GLuint -> GLenum -> GLenum -> Ptr GLint -> m () Source #

Usage: glGetProgramStageiv program shadertype pname values

The length of values should be 1.

glGetUniformSubroutineuiv :: MonadIO m => GLenum -> GLint -> Ptr GLuint -> m () Source #

Usage: glGetUniformSubroutineuiv shadertype location params

The length of params should be 1.

glUniformSubroutinesuiv :: MonadIO m => GLenum -> GLsizei -> Ptr GLuint -> m () Source #

Usage: glUniformSubroutinesuiv shadertype count indices

The length of indices should be count.

pattern GL_ACTIVE_SUBROUTINES :: (Eq a, Num a) => a Source #

pattern GL_COMPATIBLE_SUBROUTINES :: (Eq a, Num a) => a Source #

pattern GL_MAX_SUBROUTINES :: (Eq a, Num a) => a Source #

pattern GL_UNIFORM_NAME_LENGTH :: (Eq a, Num a) => a Source #

pattern GL_UNIFORM_SIZE :: (Eq a, Num a) => a Source #