Comments (15)
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.
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.
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.
of course you know I meant 11.1. Nothing in the debug output, here is a screenshot, I hope it helps
from diligentengine.
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.
I can't get GraphicsEngineD3D11_64d.pdb loaded, I don't know why
from diligentengine.
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.
@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.
Will take a look. Do other backends work?
from diligentengine.
@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.
@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:
Is this scaling functionality specific to DirectX?
from diligentengine.
Ok, good. TBH, I can't remember what implications different scaling modes have, will need to refresh this.
from diligentengine.
@arookas This should hopefully fix the problem. Please reopen the issue if it still doesn't work.
from diligentengine.
@DiligentGraphics Works on my system. Thanks for your work!
from diligentengine.
👍
from diligentengine.
Related Issues (20)
- Why does the projection matrix appear to be in a left-hand coordinate system HOT 5
- Hello, we want to use DiligentEngine as a part of commercial software, which has just started to develop. Is there anything we should pay attention to HOT 2
- Why do objects display in a left-hand coordinate system HOT 7
- WebGPU support. HOT 4
- Macro is too much , Affects code readability HOT 1
- Poor API design choices affect real usability HOT 2
- fake bind error at version 2.5.2? HOT 7
- Build failure on linux
- Windows build output HOT 7
- Wordpress site hijacked HOT 1
- Build Failure Involving libpng in DiligentEngine HOT 6
- Is build multiple shader in differrent thread safe? HOT 1
- windows build error HOT 2
- Website appears to have been hacked HOT 1
- DX11 crash when changing max frame latency HOT 4
- Build failure with FetchContent HOT 14
- Multiple swap chains frame lag? HOT 4
- read wrong depth from stage texture? HOT 9
- Vulkan: When running tutorial 12 (RenderTarget) using Vulkan backend, you get errors on every frame HOT 5
- Is it possible add suport for D3D11_RESOURCE_MISC_SHARED flag? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diligentengine.