[PATCH 3/5] d3d10/effect: Implement IsOptimized().