_generateTextureSample( texture, textureProperty, uvSnippet, depthSnippet, shaderStage = this.shaderStage ) {

		if ( shaderStage === 'fragment' ) {

			if ( depthSnippet ) {

				return `textureSample( ${ textureProperty }, ${ textureProperty }_sampler, ${ uvSnippet }, ${ depthSnippet } )`;

			} else {

				return `textureSample( ${ textureProperty }, ${ textureProperty }_sampler, ${ uvSnippet } )`;

			}

		} else {

			return this._generateTextureSampleLevel( texture, textureProperty, uvSnippet, '0', depthSnippet );

		}

	}
Generates the WGSL snippet for sampled textures.

@private
@param {Texture} texture - The texture.
@param {string} textureProperty - The name of the texture uniform in the shader.
@param {string} uvSnippet - 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} [shaderStage=this.shaderStage] - The shader stage this code snippet is generated for.
@return {string} The WGSL snippet.