anthony.liot Posted August 16, 2012 Share Posted August 16, 2012 Hi, I have a question about the video_app command "auto". My first question it's about the RENDER_SIMPLE, is it possible to use the RENDER_SIMPLE macro with the video command "auto" ??? Second question it's about direct3d119 It seems to not call when i use "auto" command, why ?? Thanks Link to comment
frustum Posted August 16, 2012 Share Posted August 16, 2012 RENDER_SIMPLE just activates simple shaders set instead of default one. direct3d119 render can be activated with "auto" command only on video card without direct3d10 feature level support or with feature level limit which can be enabled in direct3d control panel. You can force activate direct3d119 render with "-video_app direct3d119" command line parameters also. "auto" parameter selects the best graphic API from the list of currently available. Link to comment
anthony.liot Posted August 16, 2012 Author Share Posted August 16, 2012 Oki thanks. I don't know why, i thought Render Simple it was operating only on some renderer Link to comment
anthony.liot Posted August 17, 2012 Author Share Posted August 17, 2012 Frustum may be i'm wrong, but when i look the engine.cpp it seems not include the d3d911 when it's use video_app="auto" line 700 : You have only D3D11 D3DO OGL OGES PST3 It's not necessary to had something like that here between d3d11 and d3d9 : #ifdef USE_DIRECT3D119 if(engine.renders == NULL && video_app.get() != "direct3d119") { #ifdef USE_D3D119_WRAPPER if(D3D119Wrapper::isInitialized() || D3D119Wrapper::init()) { video_app = String("direct3d119"); engine.renders = new D3D119RenderManager(); } #else video_app = String("direct3d119"); engine.renders = new D3D119RenderManager(); #endif } #endif Link to comment
manguste Posted August 17, 2012 Share Posted August 17, 2012 I've added description of auto option into docs :) Link to comment
frustum Posted August 19, 2012 Share Posted August 19, 2012 This is a new initialization code: #ifdef USE_DIRECT3D119 assert(render == NULL && render9 == NULL && "D3D11RenderManager::create_render(): render is not NULL"); if(video_app.get() == "direct3d119" || D3D11Ext::getFeatureLevel() < D3D_FEATURE_LEVEL_10_0) { render9 = new D3D119Render(); return render9; } render = new D3D11Render(); return render; #else assert(render == NULL && "D3D11RenderManager::create_render(): render is not NULL"); render = new D3D11Render(); return render; #endif Link to comment
Recommended Posts