createBundleEncoder( renderContext, label = 'renderBundleEncoder' ) {

		const backend = this.backend;
		const { utils, device } = backend;

		const depthStencilFormat = utils.getCurrentDepthStencilFormat( renderContext );
		const colorFormat = utils.getCurrentColorFormat( renderContext );
		const sampleCount = this._getSampleCount( renderContext );

		const descriptor = {
			label: label,
			colorFormats: [ colorFormat ],
			depthStencilFormat,
			sampleCount
		};

		return device.createRenderBundleEncoder( descriptor );

	}
Creates GPU render bundle encoder for the given render context.

@param {RenderContext} renderContext - The render context.
@param {?string} [label='renderBundleEncoder'] - The label.
@return {GPURenderBundleEncoder} The GPU render bundle encoder.