Simple support for setting texture sampling modes.