generateSnippet( builder, textureProperty, uvSnippet, levelSnippet, biasSnippet, depthSnippet, compareSnippet, gradSnippet ) {

		const texture = this.value;

		let snippet;

		if ( levelSnippet ) {

			snippet = builder.generateTextureLevel( texture, textureProperty, uvSnippet, levelSnippet, depthSnippet );

		} else if ( biasSnippet ) {

			snippet = builder.generateTextureBias( texture, textureProperty, uvSnippet, biasSnippet, depthSnippet );

		} else if ( gradSnippet ) {

			snippet = builder.generateTextureGrad( texture, textureProperty, uvSnippet, gradSnippet, depthSnippet );

		} else if ( compareSnippet ) {

			snippet = builder.generateTextureCompare( texture, textureProperty, uvSnippet, compareSnippet, depthSnippet );

		} else if ( this.sampler === false ) {

			snippet = builder.generateTextureLoad( texture, textureProperty, uvSnippet, depthSnippet );

		} else {

			snippet = builder.generateTexture( texture, textureProperty, uvSnippet, depthSnippet );

		}

		return snippet;

	}
Generates the snippet for the texture sampling.

@param {NodeBuilder} builder - The current node builder.
@param {string} textureProperty - The texture property.
@param {string} uvSnippet - The uv snippet.
@param {?string} levelSnippet - The level snippet.
@param {?string} biasSnippet - The bias snippet.
@param {?string} depthSnippet - The depth snippet.
@param {?string} compareSnippet - The compare snippet.
@param {?Array<string>} gradSnippet - The grad snippet.
@return {string} The generated code snippet.