gl-0.8.0: Complete OpenGL raw bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Ext.ARB.ShaderSubroutine

Contents

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 :: forall a. (Num a, Eq a) => a Source #

pattern GL_ACTIVE_SUBROUTINE_MAX_LENGTH :: forall a. (Num a, Eq a) => a Source #

pattern GL_ACTIVE_SUBROUTINE_UNIFORMS :: forall a. (Num a, Eq a) => a Source #

pattern GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS :: forall a. (Num a, Eq a) => a Source #

pattern GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH :: forall a. (Num a, Eq a) => a Source #

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

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

pattern GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS :: forall a. (Num a, Eq a) => a Source #

pattern GL_NUM_COMPATIBLE_SUBROUTINES :: forall a. (Num a, Eq a) => a Source #

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

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