Merge pull request #10090 from Pokechu22/d3d-isnan-replacement Use custom isnan implementation to avoid HLSL optimizer issues