Targeted RHIs Confusion
Stumbled upon this and am hoping to find an answer from the more knowledgeable members of the community. I have a project that is packaged with only DX10 and OpenGL (i.e. SM4) selected as the targeted RHIs. But when I run it it complaints about not finding cooked content for SM5.
I can still run it if I pass -d3d10, -opengl, or -sm4 as the command line argument but it makes little sense. Isn't the engine supposed to figure out the best RHI to invoke when the game starts? What's the point of packaging for multiple RHIs if it doesn't?
My original issue was the game packaged with support for DX11, DX10, and OpenGL RHIs not starting for users with DX11 that doesn't have feature level 10. And forcing the project to only use DX10 and OpenGL is a stupid limitation even if I can make that happen. But I feel like I'm missing some important logic with multiple targeted RHIs. Any advice would be highly appreciated.
asked Feb 09 '16 at 08:08 AM in Packaging & Deployment
Hi bstone -
You are thinking about how it runs backwards. The Project when launched looks at the capabilities of the CPU/GPU it is running on and if your CPU can run SM5, the project tries to run that RHI unless you have given it a command line prompt to not do it. This is the reason that you are getting the message you are seeing now.
As far as the original issue, I would need to know a little more about how you are packaging and what message you are getting when you try to open the packaged project.
answered Feb 16 '16 at 07:47 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here