walbourn / directx-vs-templates

Direct3D Visual Studio Templates
https://walbourn.github.io/direct3d-game-visual-studio-templates-redux/
MIT License
412 stars 56 forks source link

Template request: DX12 compute console application #35

Open MathiasMagnus opened 5 years ago

MathiasMagnus commented 5 years ago

I would like to request new templates relying solely on DX12 compute without any windowing or event handling. Computing the simplest SAXPY example. Seomthing akin to my compute samples using OpenCL or SYCL. (Apologies for slightly non-uniform project layout, otherwise they resemble each other for the most part.

SAXPY via OpenCL

kép

SAXPY via SYCL

kép

I would very much like to add DX12 compute samples as well, just the shear amount flaming hoops to jump through is daunting. Ultimately it were nice if there were samples for the following:

Note

Although this is not the best place to mention, it were nice if modern Windows & DirectX samples would open toward CMake as a build system. C++/WinRT, XAML and MSIX are awesome techs, but I've not touched MSBuild in 5+ years, fyling exclusively CMake (occasionally Meson), moreover primarily VS Code for the past 2 years.

I'd like to take DX12 for a ride outside its comfort zone where MSBuild isn't going to help me much.

walbourn commented 5 years ago

FWIW: I have a BasicCompute console sample for Direct3D 11 here.

MathiasMagnus commented 5 years ago

Thanks, I'm taking that as a starting point. However I'm specifically looking for DX12, as I want to generate DXIL on my own, not through HLSL. (Moreover hooking everything into CMake.) I'll be looking at HLSL and dxc.exe output for verification only.

Does DXIL have a validator like SPIR-V does?