toggle between dx11 and dx12

Hello, I am trying to do the same thing. Do you discover how to do this?