getVars( shaderStage ) {

		const snippets = [];
		const vars = this.vars[ shaderStage ];

		if ( vars !== undefined ) {

			for ( const variable of vars ) {

				snippets.push( `\t${ this.getVar( variable.type, variable.name, variable.count ) };` );

			}

		}

		return `\n${ snippets.join( '\n' ) }\n`;

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

@param {string} shaderStage - The shader stage.
@return {string} The WGSL snippet that defines the variables.