Skip to content
Chuck Walbourn edited this page Oct 31, 2015 · 22 revisions

DirectX Tool Kit Samples

This repo contains samples related for the DirectX Tool Kit

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.

Windows 8.1

MSDN Code Gallery

Windows Desktop

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

Windows phone 8

MSDN Code Gallery

Windows phone 8.1

Xbox One

Versions also exist for the Xbox One XDK and Xbox One ADK

GDNP (login required)

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 - Updated for November 2014 release of DirectXTK

March 27, 2015 - Updated for March 2015 release of DirectXTK, added Windows phone 8.1 sample

July 29, 2015 - Updated for July 2015 release of DirectXTK, added UWP sample

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