getVar( type, name, count = null ) {

		let snippet = `var ${ name } : `;

		if ( count !== null ) {

			snippet += this.generateArrayDeclaration( type, count );

		} else {

			snippet += this.getType( type );

		}

		return snippet;

	}
Returns a WGSL string representing a variable.

@param {string} type - The variable's type.
@param {string} name - The variable's name.
@param {?number} [count=null] - The array length.
@return {string} The WGSL snippet that defines a variable.