Finds the slot of a given texture within the cache.
The texture to look for.
A non-negative number on success, -1 if the texture was not found.
See Implementation
Finds the slot of a given texture within the cache.