locked
Can DirectX for Windows 8 be ONLY for Metro or Desktop?

    Question

  • So, DirectX is lumped in the new Windows 8 SDK package! Okay, I get that but wouldn't that change everything for the developer? For instance, will it be only for METRO and\or Desktop Applications too as well? This is what's making me hesitate for a bit on upgrading to Windows 8.  I saw the sample for Metro Game Sample but could I apply the same headers and libraries to develop desktop application for Windows 8?
    Friday, June 29, 2012 1:26 AM

Answers

  • The Windows 8 SDK is used for both Metro style app development and desktop app development. You can choose which components to use and which environment to target.

    The Metro style app game samples include some Metro style app specific code as part of its overall skeleton, but the meat of the DirectX code itself is the same.

    Since this forum is specifically for developing Metro style apps the discussion here is skewed in that direction. There are other forums which concentrate on developing desktop apps (Windows Desktop Development ForumsDirectX forums).

    --Rob

    • Marked as answer by SIC2012 Friday, June 29, 2012 11:31 AM
    Friday, June 29, 2012 2:55 AM
    Owner

All replies

  • The Windows 8 SDK is used for both Metro style app development and desktop app development. You can choose which components to use and which environment to target.

    The Metro style app game samples include some Metro style app specific code as part of its overall skeleton, but the meat of the DirectX code itself is the same.

    Since this forum is specifically for developing Metro style apps the discussion here is skewed in that direction. There are other forums which concentrate on developing desktop apps (Windows Desktop Development ForumsDirectX forums).

    --Rob

    • Marked as answer by SIC2012 Friday, June 29, 2012 11:31 AM
    Friday, June 29, 2012 2:55 AM
    Owner
  • Rob, thanks so much for your answer! Have a great day!
    Friday, June 29, 2012 11:32 AM
  • Note that there are actually TWO versions of the "Windows 8 SDK". The one that comes with VS 2012 Express for Windows 8 is Metro style apps / Windows 8 only. The one that comes with VS 2012 Professional et al or the standalone Windows 8.0 SDK supports both Metro and Win32 desktop applications. Metro style applications can only be built or run on Windows 8. Win32 desktop applications written using the Windows 8.0 SDK can be run on Windows Vista, Windows 7, and Windows 8.

    For details on exactly how one uses "DirectX" with the Windows 8.0 SDK for classic Win32 desktop application development see:

    http://blogs.msdn.com/b/chuckw/archive/2012/03/22/where-is-the-directx-sdk.aspx

    http://blogs.msdn.com/b/chuckw/archive/2012/05/31/visual-studio-2012-release-candidate.aspx

    Note that parts of "DirectX" have actually be in the Windows SDK for years. Windows SDK 7.0A (included with VS 2010) and Windows SDK 7.1 include headers and libaries for Direct3D9, Direct3D9Ex, Direct3D 10.x, Direct3D 11.0, Direct2D, DirectWrite, DXGI, DirectSound, DirectInput, DirectMusic "core", DirectShow, and XINPUT 9.1.0.

    The Windows 8.0 SDK adds to this list: DirectX 11.1, updated Direct2D/DirectWrite, DXGI 1.2, XINPUT 1.4, XAUDIO 2.8, DirectXMath, D3DCompiler / FXC.EXE, and D3DCSX.

    The main changes for developers with the merge of the DirectX SDK into the Windows 8.0 SDK are summarized here, along with instructions to 'mixing' the Windows 8.0 SDK and legacy DirectX SDK if you still need some of the older content (like D3DX). The links above also have more links to details about other aspects of the Windows 8.0 SDK vs. DirectX SDK story.


    Friday, June 29, 2012 5:23 PM