Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retriving implementation depend constant values. Do NOT call below APIs out of OpenGL threads. (glGetString could return null pointer!)
- glExtensions :: [String]
- hasExt :: String -> Bool
- hasES3 :: Bool
- extVAO :: Maybe (GLsizei -> Ptr GLuint -> GL (), GLuint -> GL (), GLsizei -> Ptr GLuint -> GL ())
- glVendor :: String
- glShadingLanguageVersion :: String
- glVersion :: String
- glRenderer :: String
- newtype GLParam = GLParam GLenum
- glEnv :: GLParam -> Int32
- majorVersion :: GLParam
- numProgramBinaryFormats :: GLParam
- numExtensions :: GLParam
- minorVersion :: GLParam
- numCompressedTextureFormats :: GLParam
- numShaderBinaryFormats :: GLParam
- maxComputeUniformBlocks :: GLParam
- maxComputeTextureImageUnits :: GLParam
- maxComputeImageUniforms :: GLParam
- maxComputeSharedMemorySize :: GLParam
- maxComputeUniformComponents :: GLParam
- maxComputeAtomicCounterBuffers :: GLParam
- maxComputeAtomicCounters :: GLParam
- maxCombinedComputeUniformComponents :: GLParam
- maxComputeWorkGroupInvocations :: GLParam
- maxUniformLocations :: GLParam
- maxFramebufferWidth :: GLParam
- maxFramebufferHeight :: GLParam
- maxFramebufferSamples :: GLParam
- maxVertexAtomicCounterBuffers :: GLParam
- maxFragmentAtomicCountersBuffers :: GLParam
- maxCombinedAtomicCountersBuffers :: GLParam
- maxVertexAtomicCounters :: GLParam
- maxFragmentAtomicCounters :: GLParam
- maxCombinedAtomicCounters :: GLParam
- maxAtomicCounterBufferSize :: GLParam
- maxAtomicCounterBufferBindings :: GLParam
- maxImageUnits :: GLParam
- maxVertexImageUniforms :: GLParam
- maxFragmentImageUniforms :: GLParam
- maxCombinedImageUniforms :: GLParam
- maxVertexShaderStorageBlocks :: GLParam
- maxFragmentShaderStorageBlocks :: GLParam
- maxComputeShaderStorageBlocks :: GLParam
- maxCombinedShaderStorageBlocks :: GLParam
- maxShaderStorageBufferBindings :: GLParam
- maxShaderStorageBlockSize :: GLParam
- maxCombinedShaderOutputResources :: GLParam
- minProgramTextureGatherOffset :: GLParam
- maxProgramTextureGatherOffset :: GLParam
- maxSampleMaskWords :: GLParam
- maxColorTextureSamples :: GLParam
- maxDepthTextureSamples :: GLParam
- maxIntegerSamples :: GLParam
- maxVertexAttribRelativeOffset :: GLParam
- maxVertexAttribBindings :: GLParam
- maxVertexAttribStride :: GLParam
- newtype GLParamP = GLParamP GLenum
- glPair :: GLParamP -> (Float, Float)
- aliasedPointSizeRange :: GLParamP
- maxViewportDims :: GLParamP
- aliasedLineWidthRange :: GLParamP
Extension detection
glExtensions :: [String] Source
extVAO :: Maybe (GLsizei -> Ptr GLuint -> GL (), GLuint -> GL (), GLsizei -> Ptr GLuint -> GL ()) Source
String Parameters
Integer Parameters
majorVersion :: GLParam Source
The major version number of the OpenGL ES API supported by the current context. Note: ES 2 does not support this param thus returns 0. (ES2 -> 0, ES3 and ES3_1 -> 3)
numProgramBinaryFormats :: GLParam Source
GL_OES_get_program_binary or ES3+ The number of available program binary formats. If the value is 0, program binary is not available. The minimum value is X-0-0
numExtensions :: GLParam Source
The number of extensions supported by the GL implementation for the current context.
minorVersion :: GLParam Source
The minor version number of the OpenGL ES API supported by the current context. (ES3 -> 0, ES3_1 -> 1)
Since ES 2.0
numCompressedTextureFormats :: GLParam Source
the number of available compressed texture formats. The minimum value is 0-10-10.
numShaderBinaryFormats :: GLParam Source
The number of available shader binary formats. The minimum value is 0-0-0. Note: Not supported on most platforms.
Since ES 3.0
Since ES 3.1
maxComputeUniformBlocks :: GLParam Source
The maximum number of uniform blocks per compute shader. The value must be at least 14. See glUniformBlockBinding.
maxComputeTextureImageUnits :: GLParam Source
The maximum supported texture image units that can be used to access texture maps from the compute shader. The value may be at least 16. See glActiveTexture.
maxComputeImageUniforms :: GLParam Source
The maximum number of image variables in compute shaders. The value must be at least 8.
maxComputeUniformComponents :: GLParam Source
The maximum number of individual floating-point, integer, or boolean values that can be held in uniform variable storage for a compute shader. The value must be at least 1024. See glUniform.
maxComputeAtomicCounterBuffers :: GLParam Source
The maximum number of atomic counter buffers that may be accessed by a compute shader.
maxComputeAtomicCounters :: GLParam Source
The maximum number of atomic counters available to compute shaders.
maxCombinedComputeUniformComponents :: GLParam Source
The number of words for compute shader uniform variables in all uniform blocks (including default). The value must be at least 1. See glUniform.
maxComputeWorkGroupInvocations :: GLParam Source
The number of invocations in a single local work group (i.e., the product of the three dimensions) that may be dispatched to a compute shader.
maxUniformLocations :: GLParam Source
The maximum number of explicitly assignable uniform locations, which must be at least 1024.
maxFramebufferWidth :: GLParam Source
The maximum width for a framebuffer that has no attachments, which must be at least 16384. See glFramebufferParameteri.
maxFramebufferHeight :: GLParam Source
The maximum height for a framebuffer that has no attachments, which must be at least 16384. See glFramebufferParameteri.
maxFramebufferSamples :: GLParam Source
The maximum samples in a framebuffer that has no attachments, which must be at least 4. See glFramebufferParameteri.
maxVertexAtomicCounters :: GLParam Source
The maximum number of atomic counters available to vertex shaders.
maxFragmentAtomicCounters :: GLParam Source
The maximum number of atomic counters available to fragment shaders.
maxCombinedAtomicCounters :: GLParam Source
The maximum number of atomic counters available to all active shaders.
maxVertexShaderStorageBlocks :: GLParam Source
The maximum number of active shader storage blocks that may be accessed by a vertex shader.
maxFragmentShaderStorageBlocks :: GLParam Source
The maximum number of active shader storage blocks that may be accessed by a fragment shader.
maxComputeShaderStorageBlocks :: GLParam Source
The maximum number of active shader storage blocks that may be accessed by a compute shader.
maxCombinedShaderStorageBlocks :: GLParam Source
The maximum total number of active shader storage blocks that may be accessed by all active shaders.
maxShaderStorageBufferBindings :: GLParam Source
The maximum number of shader storage buffer binding points on the context, which must be at least 8.
maxColorTextureSamples :: GLParam Source
The maximum number of samples in a color multisample texture.
maxIntegerSamples :: GLParam Source
The maximum number of samples supported in integer format multisample buffers.
maxVertexAttribRelativeOffset :: GLParam Source
The maximum offset that may be added to a vertex binding offset.
maxVertexAttribBindings :: GLParam Source
The maximum number of vertex buffers that may be bound.
maxVertexAttribStride :: GLParam Source
Undocumented constant, perhaps does not exist?
Ranged Parameters (since ES 2.0)
aliasedPointSizeRange :: GLParamP Source
The (smallest, largest) supported sizes for points. The smallest size must be <= 1, and the largest size must be >= 1.
maxViewportDims :: GLParamP Source
The maximum supported width and height of the viewport. These must be at least as large as the visible dimensions of the display being rendered to.
aliasedLineWidthRange :: GLParamP Source
The range of widths supported for aliased lines.