Skip to content

Fix wrong error thrown on DXR wizard fixup #2127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

FrancescoC-unity
Copy link
Contributor

Fix for https://fogbugz.unity3d.com/f/cases/1263049/

Turns out SystemInfo.supportsRayTracing returns false for every device but D3D12, however the error message is confusing implying that the issue is not on the device type but is an hardware/OS issue.

Upon fixing all, the API is set to D3D11 before the restart, hence it throws an error even though there is no real issue.

I modified the error and what gets triggered at what stage in a way that we don't mention wrong hw unless we are sure that D3D12 is already set.

Copy link
Contributor

@TomasKiniulis TomasKiniulis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool that works!

Did a check when Template is set to "Fix All" and Restarted on DX11 and when project is already set to DX12, works as expected

@sebastienlagarde sebastienlagarde merged commit 685a33d into HDRP/staging Oct 8, 2020
@sebastienlagarde sebastienlagarde deleted the HDRP/error-on-dxr-hw-support-only-on-d3d12 branch October 8, 2020 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants