generateTextureStore( texture, textureProperty, uvIndexSnippet, depthSnippet, valueSnippet ) {

		let snippet;

		if ( depthSnippet ) {

			snippet = `textureStore( ${ textureProperty }, ${ uvIndexSnippet }, ${ depthSnippet }, ${ valueSnippet } )`;

		} else {

			snippet = `textureStore( ${ textureProperty }, ${ uvIndexSnippet }, ${ valueSnippet } )`;

		}

		return snippet;

	}
Generates the WGSL snippet that writes a single texel to a texture.

@param {Texture} texture - The texture.
@param {string} textureProperty - The name of the texture uniform in the shader.
@param {string} uvIndexSnippet - A WGSL snippet that represents texture coordinates used for sampling.
@param {?string} depthSnippet - A WGSL snippet that represents 0-based texture array index to sample.
@param {string} valueSnippet - A WGSL snippet that represent the new texel value.
@return {string} The WGSL snippet.