directx-vs-templates icon indicating copy to clipboard operation
directx-vs-templates copied to clipboard

Template request: DX12 compute console application

Open MathiasMagnus opened this issue 4 years ago • 2 comments

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:

  • Hello SAXPY DX12 WinAPI Win32 console
  • Hello SAXPY DX12 C++/WinRT Win32 console
  • Hello SAXPY DX12 C++/WinRT UWP console

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.

MathiasMagnus avatar Nov 26 '19 14:11 MathiasMagnus

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

walbourn avatar Nov 26 '19 23:11 walbourn

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?

MathiasMagnus avatar Nov 30 '19 14:11 MathiasMagnus