WPF and DirectX 11 via D3DImage

前端 未结 3 1839
忘了有多久
忘了有多久 2020-12-30 15:16

I want to use DirectX 11 from unmanaged C++ code and use WFP for the GUI. SlimDX is not suitable for me. I have found the solution to make working WPF with DirectX 10:

3条回答
  •  甜味超标
    2020-12-30 16:12

    I used wrong format for the vertex buffer layout. I used DXGI_FORMAT_B8G8R8A8_UNORM, but have to use DXGI_FORMAT_R32G32B32_FLOAT in my case.

提交回复
热议问题