Git Product home page Git Product logo

Comments (15)

 avatar commented on May 10, 2024

I do not think I fully understand the issue. If swap chain creation fails, an exception is thrown and then caught by the CreateSwapChainD3D11() function, which sets the pointer to null. The application should not use null pointer.

from diligentengine.

raizam avatar raizam commented on May 10, 2024

If it can help I'm on windows7, my system doesn't implement D3D11 1.1, I'm running 1.0.
I'll keep an eye on Diligent, but I'm going to wait it gets more stable before giving it another try.

from diligentengine.

 avatar commented on May 10, 2024

Again, not sure what you mean by D3D11 1.1. For render devices, Diligent creates feature level 11.0 device. It only tries to create feature level 11.1 device on Universal windows. But I assume that if you get an error during the swap chain initialization, the device has been created successfully. IDXGIFactory2 seems to be supported on Windows7, so it is hard to tell what exactly is going wrong.
I don't have Windows7 so if you can give little bit more information, I may be able to fix this. Is there anything in the debug output?

from diligentengine.

raizam avatar raizam commented on May 10, 2024

of course you know I meant 11.1. Nothing in the debug output, here is a screenshot, I hope it helps
untitled

from diligentengine.

 avatar commented on May 10, 2024

Ok, it does show that the device has been created successfully, so it is not D3D11.1 issue. There should be something in the output, or if you can step into the CreateSwapChainD3D11 function and see where exactly the error happens, this would be helpful.

from diligentengine.

raizam avatar raizam commented on May 10, 2024

I can't get GraphicsEngineD3D11_64d.pdb loaded, I don't know why

from diligentengine.

 avatar commented on May 10, 2024

Hmm. Not sure why this could be happening. You can try to link against static versions of libraries by changing get_backend_libraries_type function in https://github.com/DiligentGraphics/DiligentCore/blob/master/BuildUtils.cmake

from diligentengine.

arookas avatar arookas commented on May 10, 2024

@DiligentGraphics I am also on Win7 x64 trying to run a tutorial (specifically cube) with the 11.0 backend. I was able to get the runtime exception that occurs:

DXGI ERROR: IDXGIFactory::CreateSwapChain: DXGI_SCALING_NONE is only supported on Win8 and beyond. DXGI_SWAP_CHAIN_DESC{ SwapChainType = ..._HWND, BufferDesc = DXGI_MODE_DESC1{Width = 1280, Height = 1024, RefreshRate = DXGI_RATIONAL{ Numerator = 0, Denominator = 0 }, Format = R8G8B8A8_UNORM, ScanlineOrdering = ..._UNSPECIFIED, Scaling = ..._UNSPECIFIED, Stereo = FALSE }, SampleDesc = DXGI_SAMPLE_DESC{ Count = 1, Quality = 0 }, BufferUsage = 0x20, BufferCount = 2, OutputWindow = 0x00000000001F0480, Scaling = ..._NONE, Windowed = TRUE, SwapEffect = ..._FLIP_SEQUENTIAL, AlphaMode = ..._UNSPECIFIED, Flags = 0x2 } [ MISCELLANEOUS ERROR #175: ]
Exception thrown at 0x000007FEFD68BDED in Tutorial02_Cube.exe: Microsoft C++ exception: _com_error at memory location 0x00000000002DC670.
Diligent Engine: CRITICAL ERROR in Diligent::SwapChainD3DBase<class Diligent::ISwapChainD3D11,struct IDXGISwapChain>::CreateDXGISwapChain() (SwapChainD3DBase.h, 143): Failed to create Swap Chain

Seems to be missing support for DXGI_SCALING_NONE on Win7?

from diligentengine.

 avatar commented on May 10, 2024

Will take a look. Do other backends work?

from diligentengine.

 avatar commented on May 10, 2024

@arookas can you try other scaling modes and see if they work? I don't have Win7, so I will not be able to verify solutions.

from diligentengine.

arookas avatar arookas commented on May 10, 2024

@DiligentGraphics Thanks for the reply. I selected the OpenGL backend and it appears to run the demo just fine. My computer unfortunately does not support the other backends.

As for the scaling mode, I changed this line to the other scaling modes (DXGI_SCALING_STRETCH and DXGI_SCALING_ASPECT_RATIO_STRETCH) and they both make the demo run fine:

https://github.com/DiligentGraphics/DiligentCore/blob/d2b5a9c709d1a1e360aec0efa96d098a5b3569a2/Graphics/GraphicsEngineD3DBase/include/SwapChainD3DBase.h#L113-L115

Is this scaling functionality specific to DirectX?

from diligentengine.

 avatar commented on May 10, 2024

Ok, good. TBH, I can't remember what implications different scaling modes have, will need to refresh this.

from diligentengine.

 avatar commented on May 10, 2024

@arookas This should hopefully fix the problem. Please reopen the issue if it still doesn't work.

from diligentengine.

arookas avatar arookas commented on May 10, 2024

@DiligentGraphics Works on my system. Thanks for your work!

from diligentengine.

 avatar commented on May 10, 2024

👍

from diligentengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.