OgreRenderer DirectX11 Vertex Shader Bug

Issue #1154 new
codexhound
created an issue

Build Description: Ogre3d 1.1.9

CEGUI Revision: 6268 Changeset: b975a6885624277808189ac3d503dea7ba82b1a7 [b975a6885624]

Defect Description: Cannot use CEGUI with DirectX11. When loading the CEGUI resources with ogre3d:

23:02:54: RenderingAPIException: D3D11 device cannot draw
Error Description:ID3D11DeviceContext::Draw: Vertex Shader - Pixel Shader linkage error: Signatures between stages are incompatible. Semantic 'COLOR' is defined for mismatched hardware registers between the output stage and input stage.

Active OGRE shaders:
VS = __cegui_internal_vs__
FS = __cegui_internal_ps__ in D3D11RenderSystem::_render at e:\codex\user\documents\ogrerepo\rendersystems\direct3d11\src\ogred3d11rendersystem.cpp (line 2941)

//My Ogre Setup Code:
/*Load the GUI*/

    CEGUI::ImageManager::setImagesetDefaultResourceGroup("Imagesets");
    CEGUI::Font::setDefaultResourceGroup("Fonts");
    CEGUI::Scheme::setDefaultResourceGroup("Schemes");
    CEGUI::WidgetLookManager::setDefaultResourceGroup("LookNFeel");
    CEGUI::WindowManager::setDefaultResourceGroup("Layouts");

    Ogre::Light* light = mSceneMgr->createLight("MainLight");
    light->setPosition(20, 80, 50);


    CEGUI::SchemeManager::getSingleton().createFromFile("TaharezLook.scheme");
    CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage("TaharezLook/MouseArrow");

    CEGUI::WindowManager &wmgr = CEGUI::WindowManager::getSingleton();
    CEGUI::Window *sheet = wmgr.createWindow("DefaultWindow", "CEGUIDemo/Sheet");
    CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow(sheet);

Using the "fix" in this link I got another error: http://cegui.org.uk/forum/viewtopic.php?t=6613

[22:47:13]: *** Initializing OIS ***
[22:47:14]: RenderingAPIException: Unable to set D3D11 vertex declaration in D3D11VertexDeclaration::getILayoutByShader at e:\codex\user\documents\ogrerepo\rendersystems\direct3d11\src\ogred3d11vertexdeclaration.cpp (line 99)](Link URL)](Link URL)

Comments (0)

  1. Log in to comment