microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++

Home Page:https://walbourn.github.io/directxtk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game Controller Input tutorial uses ID3D11ShaderResourceView

pcbeard opened this issue · comments

The game controller input tutorial hasn't been updated for DirectX 12; it's still using ID3D11ShaderResourceView, etc.

The input tutorials including Keyboard & Mouse assume you are either using DirectX 11 or are an experienced graphics programmer since you are using DirectX12 and can use the information in the 3D Shapes tutorial to work it out.

The same is true of Using positional audio.

They all have the following under the Adding a simple scene section:

If using DirectX 12, you will also need a BasicEffect, CommonStates, DescriptorHeap, and ResourceUploadBatch to render this scene. See the 3D Shapes tutorial for more details.

That said, I can look at expanding them to include the explicit DirectX 12 versions as well if that's useful like I did for DebugDraw.

I've updated both of these tutorials to include DX11 & DX12 instructions for the graphics bits:

https://github.com/microsoft/DirectXTK/wiki/Game-controller-input

https://github.com/microsoft/DirectXTK/wiki/Mouse-and-keyboard-input