remove texture usage count
removed guard clauses
replaced supported texture with an unsigned int
split into 3 parts
added algorithm for find, removed debug comments