Detect texture units.