Module

WebGL.Raw.WebGL2.UniformBufferObjects

Package
purescript-webgl2-raw
Repository
chrismshelton/purescript-webgl2-raw

#bindBufferBase Source

bindBufferBase :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Maybe WebGLBuffer -> Effect Unit

Usage: bindBufferBase gl target index buffer

void
bindBufferBase (GLenum target, GLuint index, WebGLBuffer? buffer);

Documentation: WebGL 2.0 spec, section 3.7.16

#bindBufferRange Source

bindBufferRange :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Maybe WebGLBuffer -> GLintptr -> GLsizeiptr -> Effect Unit

Usage: bindBufferRange gl target index buffer offset size

void
bindBufferRange ( GLenum target
                , GLuint index
                , WebGLBuffer? buffer
                , GLintptr offset
                , GLsizeiptr size
                );

Documentation: WebGL 2.0 spec, section 3.7.16

#getUniformIndices Source

getUniformIndices :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array String -> Effect (Maybe (Array GLuint))

Usage: getUniformIndices gl program uniformNames

sequence<GLuint>?
getUniformIndices ( WebGLProgram program
                  , sequence<DOMString> uniformNames
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

#getActiveUniformsGLbooleanArray Source

getActiveUniformsGLbooleanArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLboolean))

Usage: getActiveUniformsGLbooleanArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_IS_ROW_MAJOR
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformsGLenumArray Source

getActiveUniformsGLenumArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLenum))

Usage: getActiveUniformsGLenumArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_TYPE
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformsGLintArray Source

getActiveUniformsGLintArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLint))

Usage: getActiveUniformsGLintArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_ARRAY_STRIDE
  • pname = UNIFORM_BLOCK_INDEX
  • pname = UNIFORM_MATRIX_STRIDE
  • pname = UNIFORM_OFFSET
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformsGLuintArray Source

getActiveUniformsGLuintArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLuint))

Usage: getActiveUniformsGLuintArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_SIZE
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformBlockIndex Source

getUniformBlockIndex :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> String -> Effect GLuint

Usage: getUniformBlockIndex gl program uniformBlockName

GLuint
getUniformBlockIndex ( WebGLProgram program
                     , DOMString uniformBlockName
                     );

Documentation: WebGL 2.0 spec, section 3.7.16

#getActiveUniformBlockParameterGLboolean Source

getActiveUniformBlockParameterGLboolean :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe GLboolean)

Usage: getActiveUniformBlockParameterGLboolean gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
  • pname = UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformBlockParameterGLuint Source

getActiveUniformBlockParameterGLuint :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe GLuint)

Usage: getActiveUniformBlockParameterGLuint gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_ACTIVE_UNIFORMS
  • pname = UNIFORM_BLOCK_BINDING
  • pname = UNIFORM_BLOCK_DATA_SIZE
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformBlockParameterUint32Array Source

getActiveUniformBlockParameterUint32Array :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe (ArrayView Uint32))

Usage: getActiveUniformBlockParameterUint32Array gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getActiveUniformBlockName Source

getActiveUniformBlockName :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> Effect (Maybe String)

Usage: getActiveUniformBlockName gl program uniformBlockIndex

DOMString?
getActiveUniformBlockName ( WebGLProgram program
                          , GLuint uniformBlockIndex
                          );

Documentation: WebGL 2.0 spec, section 3.7.16

#uniformBlockBinding Source

uniformBlockBinding :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLuint -> Effect Unit

Usage: uniformBlockBinding gl program uniformBlockIndex uniformBlockBinding

void
uniformBlockBinding ( WebGLProgram program
                    , GLuint uniformBlockIndex
                    , GLuint uniformBlockBinding
                    );

Documentation: WebGL 2.0 spec, section 3.7.16

Modules
WebGL.Raw.Extensions.ANGLE.InstancedArrays
WebGL.Raw.Extensions.EXT.BlendMinmax
WebGL.Raw.Extensions.EXT.ColorBufferFloat
WebGL.Raw.Extensions.EXT.ColorBufferHalfFloat
WebGL.Raw.Extensions.EXT.DisjointTimerQuery
WebGL.Raw.Extensions.EXT.DisjointTimerQueryWebgl2
WebGL.Raw.Extensions.EXT.FragDepth
WebGL.Raw.Extensions.EXT.SRGB
WebGL.Raw.Extensions.EXT.ShaderTextureLod
WebGL.Raw.Extensions.EXT.TextureFilterAnisotropic
WebGL.Raw.Extensions.OES.ElementIndexUint
WebGL.Raw.Extensions.OES.StandardDerivatives
WebGL.Raw.Extensions.OES.TextureFloat
WebGL.Raw.Extensions.OES.TextureFloatLinear
WebGL.Raw.Extensions.OES.TextureHalfFloat
WebGL.Raw.Extensions.OES.TextureHalfFloatLinear
WebGL.Raw.Extensions.OES.VertexArrayObject
WebGL.Raw.Extensions.WEBGL.ColorBufferFloat
WebGL.Raw.Extensions.WEBGL.CompressedTextureAstc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc1
WebGL.Raw.Extensions.WEBGL.CompressedTexturePvrtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tcSrgb
WebGL.Raw.Extensions.WEBGL.DebugRendererInfo
WebGL.Raw.Extensions.WEBGL.DebugShaders
WebGL.Raw.Extensions.WEBGL.DepthTexture
WebGL.Raw.Extensions.WEBGL.DrawBuffers
WebGL.Raw.Extensions.WEBGL.LoseContext
WebGL.Raw.Types
WebGL.Raw.WebGL1
WebGL.Raw.WebGL1.Enums
WebGL.Raw.WebGL1.Uniforms
WebGL.Raw.WebGL1.VertexAttributes
WebGL.Raw.WebGL1.WebGLActiveInfo
WebGL.Raw.WebGL1.WebGLBuffer
WebGL.Raw.WebGL1.WebGLContextEvent
WebGL.Raw.WebGL1.WebGLFramebuffer
WebGL.Raw.WebGL1.WebGLProgram
WebGL.Raw.WebGL1.WebGLRenderbuffer
WebGL.Raw.WebGL1.WebGLRenderingContext
WebGL.Raw.WebGL1.WebGLShader
WebGL.Raw.WebGL1.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL1.WebGLTexture
WebGL.Raw.WebGL2
WebGL.Raw.WebGL2.Enums
WebGL.Raw.WebGL2.UniformBufferObjects
WebGL.Raw.WebGL2.Uniforms
WebGL.Raw.WebGL2.VertexAttributes
WebGL.Raw.WebGL2.WebGL2RenderingContext
WebGL.Raw.WebGL2.WebGLActiveInfo
WebGL.Raw.WebGL2.WebGLBuffer
WebGL.Raw.WebGL2.WebGLContextEvent
WebGL.Raw.WebGL2.WebGLFramebuffer
WebGL.Raw.WebGL2.WebGLProgram
WebGL.Raw.WebGL2.WebGLQuery
WebGL.Raw.WebGL2.WebGLRenderbuffer
WebGL.Raw.WebGL2.WebGLSampler
WebGL.Raw.WebGL2.WebGLShader
WebGL.Raw.WebGL2.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL2.WebGLSync
WebGL.Raw.WebGL2.WebGLTexture
WebGL.Raw.WebGL2.WebGLTransformFeedback
WebGL.Raw.WebGL2.WebGLVertexArrayObject