XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

How to provoke D3D10 device lost

Last post 10/21/2009 3:48 AM by legalize. 2 replies.
  • 9/18/2009 4:40 AM

    How to provoke D3D10 device lost

    I want to check how my app reacts to d3d 'device lost'. I am searching how I may cause something to get one of the following:

    • DXGI_ERROR_DEVICE_HUNG
    • DXGI_ERROR_DEVICE_REMOVED
    • DXGI_ERROR_DEVICE_RESET
    • DXGI_ERROR_DRIVER_INTERNAL_ERROR
    • DXGI_ERROR_INVALID_CALL

    using GetDeviceRemovedReason();

  • 9/21/2009 6:59 PM In reply to

    Re: How to provoke D3D10 device lost

    Run a shader that needs a long time to finish. This should cause a driver rest.
  • 10/21/2009 3:48 AM In reply to

    Re: How to provoke D3D10 device lost

    Another approach is to use a polymorphic test double for the D3D interfaces and force the behavior you're trying to test in your code.
Page 1 of 1 (3 items) Previous Next