The changes made in this patch are analogous to the changes made in
this Cycles patch: D14295 | rB4abb8a14a213.
This patch brings minor performance improvements, code consistency,
and also, helps cleanup to prepare for future features.
Future Features I Want to Implement:
- Independent axis extensions for X/U and Y/V
- Mirrored repeat texture extension mode
Here is a test file for verification purposes: