Phaser API Documentation

  Version: 
isCurrent(pipeline, [currentShader])

Description:

Checks to see if the given pipeline is already the active pipeline, both within this Pipeline Manager and also has the same shader set in the Renderer.

Parameters:

name type arguments description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline instance to be checked.

currentShader Phaser.Renderer.WebGL.WebGLShader <optional>

The shader to set as being current.

Returns:
Description:

true if the given pipeline is already the current pipeline, otherwise false.

Type:
  • boolean
Examples:
Since: 3.50.0