A WebGL implementation of the Shader.

Methods

  • Link the shader, and extract its attributes and uniform information.

    Parameters

    • device: WebglGraphicsDevice

      The graphics device.

    • shader: Shader

      The shader to query.

    Returns boolean

    True if the shader was successfully queried and false otherwise.

  • Check the linking status of a shader.

    Parameters

    • device: WebglGraphicsDevice

      The graphics device.

    Returns boolean

    True if the shader is already linked, false otherwise. Note that unless the device supports the KHR_parallel_shader_compile extension, this will always return true.

  • Link shader programs. This is called at a later stage, to allow many shaders to compile in parallel.

    Parameters

    • device: WebglGraphicsDevice

      The graphics device.

    • shader: Shader

      The shader to compile.

    Returns void