direct state access in texture classes