How to check if the project is DX12?

I create a new project. Then make a shortcut for it and open it’s properties. The Target is this;
“C:\Users\Tonguc\Documents\Unreal Projects\test49\test49.uproject” -DX12

By that shortcut, I open my project and open Project Settings. In Platforms section I select Windows. And in it I see Targeted RHIs title. So my question is, why DirectX 12 is not there? How can I check if my project is a DX12 project? And I know that it is experimental now but, if possible, how can I make a DirectX 12 ONLY project?

Thanks.

Hey Tongucci,

DirectX 12 would only work for Windows 10. Are you currently on Windows 10?

Yes. And my GPU is GTX980. When I open dxdiag, the DirectX Version says 12.

If you’re on Windows 10, it’s an automatic conversion to DX12. So as long as you’ve created this project on Windows 10 and haven’t changed the settings, you’ll be set up for DX12.

Thanks!

But in “Targeted RHI” I don’t see DirectX 12, shouldn’t I? And is it possible to make a DirectX 12 only project that won’t run with DX10 or DX11? Thanks.

If you want your project to only work on DX12 and you’re on Windows 11, you can go into the Project Settings > Platforms > Windows and uncheck the boxes for DirectX 10 & 11.

Meaning DX12 is checked by default even though the option is not there. Ok, thanks.

You’re welcome. Please let us know if you have any further questions. :slight_smile:

as i posted here Using .uproject file with -dx - opengl parameter not working - Feedback for Unreal Engine team - Unreal Engine Forums

im not so sure that his method of using a uproject with a parameter for dx version is working at all.

And as far as i experienced on win 10 a project is not automatically dx12 because i get artifacts when using dx12 in the viewport and i only get this when specific using a editor shortcut with -dx12. So i suspect that the defualt version of dx is still dx11 on win 10.