MaterialSnapshot: Index cached texture unit states by rtexmapunitid_t