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

Mismatch for the D3D11Device between the private member and the Accessor? #28

Closed BMarques closed 5 years ago

BMarques commented 5 years ago

Hello, While studying the DeviceResources header file present on the d3d11game_uwp_cppwinrt_dr project, I noticed that the private member has: Microsoft::WRL::ComPtr<ID3D11Device3> m_d3dDevice;

But the accessor has: **ID3D11Device2*** GetD3DDevice() const { return m_d3dDevice.Get(); }

Was that on purpose? If so, why?

Thank you.

walbourn commented 5 years ago

Just a copy & paste error moving between the various versions of DR. Fixed in this commit

walbourn commented 5 years ago

Note that for my DX11 PC templates., I assume Windows 7 SP1+DirectX 11.1 runtime. For UWP templates, I assume Windows 10 which was DirectX 11.3 / DirectX 12.0.