Skip to content
Chuck Walbourn edited this page Feb 23, 2022 · 22 revisions

DirectX Tool Kit Samples

This repo contains samples related for the DirectX Tool Kit for DirectX 11 and DirectX Tool Kit for DirectX 12

Simple Sample

The SimpleSample demo shows how to link to the DirectXTK library and demonstrates the use of several DirectXTK components:

  • SimpleMath wrapper for DirectXMath
  • SpriteBatch is used to render a Windows logo
  • SpriteFont and SpriteBatch are used to render text
  • GeometricPrimitive is used to render a teapot
  • PrimitiveBatch is used to render the grid
  • Model is used to render a mesh loaded from the legacy DirectX SDK SDKMESH file Tiny.SDKMESH
  • Several textures are loaded using DDSTextureLoader
  • Plays a looping sound and timed 'one-shot' audio
  • Demonstrates a simple handling of audio device scenarios for DirectX for Audio

Windows 10

This is the universal Windows app version of the SimpleSample for Windows 10.

  • SimpleSampleWindows10 is the Direct3D 11 simple sample
  • SimpleSampleWindows10_XAML is a DirectX+XAML simple sample
  • SimpleSampleWindows10DX12 is the Direct3D 12 simple sample

Windows Desktop

  • SimpleSampleWin32 is the Direct3D 11 simple sample
  • SimpleSampleWin32DX12 is the Direct3D 12 simple sample

MSDN Code Gallery (no audio)
MSDN Code Gallery (Windows 8.x using XAudio 2.8)
MSDN Code Gallery (DirectX SDK using XAudio 2.7)

Xbox One

Versions also exist for the Xbox One XDK DX11 | DX12

Retired

Windows 8.1

SimpleSampleWindows81 is the Windows 8.1 Store simple sample.

MSDN Code Gallery

Windows phone 8.1

SimpleSampleWindowsPhone81 is the Windows Phone 8.1 simple sample.

Version History

January 25, 2013 - Initial release (Win32)

January 29, 2013 - Initial release (Windows 8.0)

February 8, 2013 - Initial release (Windows phone 8.0)

February 28, 2014 - Initial release (Win32 DirectX Tool Kit)

July 1, 2013 - Updated for July 2013 release of DirectXTK (Windows 8.1 initial release)

October 28, 2013 - Updated for October 2013 release of DirectXTK

February 28, 2014 - Update for the February 2014 release of DirectXTK

March 6, 2014 - Updated for DirectXTK for Audio and February 2014 release of DirectXTK

July 24, 2014 - Updated for July 2014 release of DirectXTK

November 24, 2014 or later - See releases

Cleanup

The UWP samples are all deployed for testing, and will remain on your system until they are uninstalled. To remove them, you can use the following PowerShell script:

$dxtksimple = @(
"7cb51bab-3b6e-4add-8458-90cdbec86024",
"e3d88ade-aa5b-4784-bb84-5290369c8738",
"e5328dea-cdde-4151-b1b7-42b0df404cd2"
)
$dxtksimple | % { Get-AppxPackage -Name $_ } | Remove-AppxPackage

For Development

  • Visual Studio 2022
  • Visual Studio 2019

Related Projects

DirectX Tool Kit for DX11

DirectX Tool Kit for DX12

DirectX SDK Samples

Clone this wiki locally