ETextureCreateFlags::RenderTargetable error

Assertion failed: !EnumHasAnyFlags(Flags, ETextureCreateFlags::RenderTargetable| ETextureCreateFlags::ResolveTargetable) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Texture.cpp] [Line: 332]

I’m getting this error everytime I load into a level with a metahuman in it in virtual reality. I don’t know why but can someone help me figure this out please. I’m using directX 11 for specific support in something, and SM5

Just to confirm: ChatGPT said it’s something to do with material generation on the fly. Which is what this metahuman does, it generates the material appropriate to the LOD.

What should I do?

You’re using DirectX 11, so idk if this applies to you, but it may give you hints. I also want to drop this incase anyone else runs into this error and it may the solution, because this was brutal. It took me 3 days to snuff this out. Lol.

If you are using Deferred Renderer and Lumen Reflections are on (not just normal Lumen, but the reflections mode) and any material’s lighting mode is set to Surface ForwardShading, it will cause this crash.