ComputeSharp icon indicating copy to clipboard operation
ComputeSharp copied to clipboard

Question: Why support only DirectX 12.1?

Open miyconst opened this issue 7 years ago • 7 comments

I am trying to experiment with different graphics cards, and figured out that my AMD RX 580 was not detected.

After some digging I found that minimum required API is DirectX 12.1, while the AMD RX 580 supports only 12.0.

I tried my test with updated minimum required API to FeatureLevel.Level_12_0, and it passed on AMD RX 580.

Are there some features in DirectX 12.1 which are required for this library to function?

miyconst avatar Oct 06 '19 22:10 miyconst

You're correct, DX12 should actually be enough. I'll make some tests on my end and if everything looks good I'll make this change in the next update 👍

Sergio0694 avatar Oct 07 '19 16:10 Sergio0694

I will be patiently waiting to help test it.

ElAmen avatar Oct 07 '19 16:10 ElAmen

I think even feature level 11.0 should be fine, compute shaders are supported there, it's just the minimum level you want, then you can actually query the maximum supported level by calling D3D12Device.CheckMaxSupportedFeatureLevel([ARRAY OF FEATURE LEVELS], out var maxSupportedFeatureLevel);

amerkoleci avatar Oct 08 '19 13:10 amerkoleci

Hey @amerkoleci - thanks for chiming in! The reason why I ended up setting DX12.0 as minimum is because @aminator mentioned the fact that DX11.x doesn't have the DXIL support as mandatory, so I could end up with a GPU device that's not able to run my custom shaders, whereas with a DX12.x device that support is always guaranteed. Of course, correct me if I'm wrong here, this is just what I gathered from my previous conversations with him about this subject. Also there should be some intrinsics that are not entirely supported on some DX11 devices, though I might be wrong about this last detail.

Sergio0694 avatar Oct 08 '19 16:10 Sergio0694

I've published ComputeSharp version 1.3.1, which includes a few bug fixes, minor performance improvements and support for DX12 GPUs. @miyconst and @ElAmen give it a try and let me know if that works for you! 😊

Sergio0694 avatar Oct 11 '19 10:10 Sergio0694

Thanks @Sergio0694, now my RX 580 is detected, and in my particular case it's actually faster than GTX 1080.

miyconst avatar Oct 15 '19 19:10 miyconst

Hey @miyconst - that's awesome, thanks for the update! 🎉

Sergio0694 avatar Oct 15 '19 20:10 Sergio0694