Jump to content
  • Advertisement
  • entries
  • comments
  • views

Direct3D 10.1 in under a minute

Sign in to follow this  


  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 );
    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!
Sign in to follow this  


Recommended Comments


Is this also the case when running on the new ati hardware? (DX10.1 compatible)

Share this comment

Link to comment
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!


Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!