getScopedArrays( shaderStage ) {

		if ( shaderStage !== 'compute' ) {

			return;

		}

		const snippets = [];

		for ( const { name, scope, bufferType, bufferCount } of this.scopedArrays.values() ) {

			const type = this.getType( bufferType );

			snippets.push( `var<${scope}> ${name}: array< ${type}, ${bufferCount} >;` );

		}

		return snippets.join( '\n' );

	}
Returns the scoped arrays of the given shader stage as a WGSL string.

@param {string} shaderStage - The shader stage.
@return {string|undefined} The WGSL snippet that defines the scoped arrays.
Returns `undefined` when used in the vertex or fragment stage.