getSampleCount( sampleCount ) {

		let count = 1;

		if ( sampleCount > 1 ) {

			// WebGPU only supports power-of-two sample counts and 2 is not a valid value
			count = Math.pow( 2, Math.floor( Math.log2( sampleCount ) ) );

			if ( count === 2 ) {

				count = 4;

			}

		}

		return count;

	}
Returns a modified sample count from the given sample count value.

That is required since WebGPU does not support arbitrary sample counts.

@param {number} sampleCount - The input sample count.
@return {number} The (potentially updated) output sample count.