Select texture target based on pixel format.