Direct3D 10.1 in under a minute

Published January 30, 2008
Advertisement

  1. Install Windows Vista Service Pack 1
  2. Install DirectX SDK from November 2007
  3. Open up the sample browser, install tutorial 07 (the most complex that doesn't involve DXUT)
  4. Change #include to be #include
  5. Change ID3D10Device* to ID3D10Device1* in the global variable declarations
  6. Replace the line:
    hr = D3D10CreateDeviceAndSwapChain( NULL, g_driverType, NULL, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice );
    with:
    hr = D3D10CreateDeviceAndSwapChain1( NULL, g_driverType, NULL, createDeviceFlags, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice );
  7. Change the project's linker settings to reference d3d10_1d.lib / d3d10_1.lib instead of d3d10d.lib / d3d10.lib.
  8. Hit "F5" to build and run.


A Direct3D 10.0 application running via the 10.1 runtimes. Easy!

Change D3D10_FEATURE_LEVEL_10_0 to be D3D10_FEATURE_LEVEL_10_1 and receive E_NOTIMPL for both hardware and software devices. Hmpf!
0 likes 2 comments

Comments

Moomin
Quote: E_NOTIMPL

Is this also the case when running on the new ati hardware? (DX10.1 compatible)
January 31, 2008 12:59 PM
jollyjeffers
I don't have enough money for a 3850/3870, so I'd have to rely on some other kind community member to confirm this!

Jack
February 03, 2008 04:59 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement