A simple cross platform Direct3D 12 application that that displays a triangle on screen. You can run as a Xbox application, a standalone UWP app, or standalone Win32 app. C++/CX and C++/WinRT frameworks are supported and are demonstrated using their respective projects in the applicaions folder inside Visual Studio.
Windows (Win32 mode)
Windows 10 (UWP mode)
Xbox One/X (UWP mode)
Visual Studio 2017/19
Microsoft Developer Account (If you're deploying to the Xbox. You dont need it to deploy on Windows or as a regular UWP app though)
DirectX 12 compatible graphics card (If running on PC)
- Download and install Universal Windows Platform module for Visual Studio from the Visual Studio installer.
- Make sure you have the most recent Windows 10 SDK.
- To run as a standard Win32 application set "Application_Windows" as the startup project and run.
- To run as a Windows Store app (UWP) set one of the projects prefixed with "Application_UWP_" as the startup project and run. Windows Store App and Universal Windows Platform are the same thing, they both run on the Xbox.
4a. Before running on UWP platforms, Right click on the project and select "Deploy" to create a app package.
4b. Inside the root build directory copy the "Shaders.hlsl" file and paste it in the root directory of the "AppX" folder.
- Make sure your xbox is in dev mode before proceeding.
- Set one of the "Application_UWP_*" projects as the startup project.
- Set the debugger type to "Remote Windows Debugger" and enter your consoles IP address when prompted. If not prompted right click on "Application_UWP_*" and go the properties pannel. Click on
"Debugging" then "Remote Machine" in the "Machine Name" field enter your consoles IP address.
- Right click on the project and select "Deploy" to create an app package.
- Inside the root build directory copy the "Shaders.hlsl" file and paste it in the root directory of the "AppX" folder.
- Run, and the app will be uploaded to the Xbox and start automatically.