# Crash when playing in VR with DirectX12 enabled

**URL:** <https://forums.unrealengine.com/t/crash-when-playing-in-vr-with-directx12-enabled/773216>\
**Category:** World Creation\
**Tags:** SteamVR, rhi, upgrade, directx, unreal-engine, crash, Nanite, question\
**Created:** [February 17, 2023, 11:19pm UTC](https://forums.unrealengine.com/t/crash-when-playing-in-vr-with-directx12-enabled/773216 "2023-02-17T23:19:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZaneJensen013](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZaneJensen013](https://forums.unrealengine.com/u/ZaneJensen013)\
**Post date:** [February 17, 2023, 11:19pm UTC](https://forums.unrealengine.com/t/crash-when-playing-in-vr-with-directx12-enabled/773216/1 "2023-02-17T23:19:17Z")

</div>

I am working on upgrading a VR project to use Nanite, and when I enabled set the default RHI to DirectX 12. The project crashes and I’m left with a black window, I’m then forced to force close the project. Any ideas on why this is? I have sm6 and nanite enabled. The same thing happens even if I don’t have Nanite Meshes in the scene.
