setPipeline( pass, pipeline ) {

		const currentPipeline = this._activePipelines.get( pass );

		if ( currentPipeline !== pipeline ) {

			pass.setPipeline( pipeline );

			this._activePipelines.set( pass, pipeline );

		}

	}
Sets the given pipeline for the given pass. The method makes sure to only set the
pipeline when necessary.

@param {(GPURenderPassEncoder|GPUComputePassEncoder)} pass - The pass encoder.
@param {(GPURenderPipeline|GPUComputePipeline)} pipeline - The pipeline.