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

How to provoke D3D10 device lost

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

    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();

  • 21/09/2009 18:59 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.
  • 21/10/2009 3:48 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