Microsoft DirectX Graphics Infrastructure (DXGI) is often used in combination with Direct3D and is responsible for enumerating graphics adapters and display modes, selecting buffer formats, sharing resources between processes and presenting rendered frames to the monitor.
Questions tagged [dxgi]
248 questions
1
vote
0 answers
Change Display Mode on CTRL-ALT-DEL
There seems to be a bit of a quirk with Window's Ctrl+Alt+Del. When a D3D11 window in exclusive fullscreen mode loses focus via Ctrl+Alt+Del, the desktop retains the display mode used by this window. If the resolution is too small, using the…

NmdMystery
- 2,778
- 3
- 32
- 60
1
vote
1 answer
DXGI and 2+ full screen displays on Windows 7
I am developing a program that needs two full screen Direct3D dispalys. According to the documentation I should create the swap chains in windowed mode and then switch to full screen mode. While this works fine on Windows 8 (currently I'm just using…

Allen Pestaluky
- 3,126
- 2
- 20
- 22
1
vote
2 answers
Cannot open include file: 'dxgi1_2.h': No such file or directory
I am including the header file "dxgi1_2.h" in my VC++ code & I see that I'm getting the error.
Cannot open include file: 'dxgi1_2.h': No such file or directory
I know this is because, I need to install something from MSFT related to DX11. (Is the…

codeLover
- 3,720
- 10
- 65
- 121
1
vote
1 answer
Enable "Live Object Warning" in DXGI
In Direct3D 11, I can enable "live object warnings" like
D3D11: WARNING: Live Texture2D: Name="unnamed", Addr=0x02A16AAC, ExtRef=1, IntRef=0 [ STATE_CREATION WARNING #2097235: LIVE_TEXTURE2D ]
in my debug builds to detect objects that have not been…

Christoph
- 1,964
- 2
- 27
- 44
1
vote
1 answer
Other monitors go black when switch one monitor to fullscreen with DXGI
When I switch one of my monitor to fullscreen mode, sometimes the other monitors just become black and won't show anything. Did I do something wrong or it is just some bug?
I created a window, and then created a swapchain binded to that window. And…

BlueWanderer
- 2,671
- 2
- 21
- 36
0
votes
2 answers
Shared DirectX texture2D between UWP and win32 app
I am trying to set up a shared 2D texture between an uwp application and a win32 application. The minimal reproducible example uses the CoreApp project template (C++/WinRT), in which all functions from the App class (except the Run method) are empty…

UnclePooh
- 64
- 7
0
votes
0 answers
How to programmatically select dedicated Intel GPU?
Related to Forcing Machine to Use Dedicated Graphics Card?
I want to use dedicated GPU (Intel Arc in my case) for the app.
For AMD / Nvidia we can select related dedicated GPUs by exporting special variables to be read by graphics runtime:
extern…

dimhotepus
- 1
- 2
0
votes
0 answers
DuplicateOutput is falling with E_INVALIDARGS
I am trying to capture my screen and too do this I am using Duplicate output (line: 44) but it fails with the error E_INVALIDARGS. This is my first time using directx.
#include "dda_impl.hpp"
#include "definitions.hpp"
HRESULT dda_impl::initialize(…

46784
- 1
- 1
0
votes
0 answers
Creating an Initialization and Capturing function that returns an image for a Screen Sharing app in WinRT rather than a monolithe
I asked in a previous question whether there was a way of capturing a window in Win 10 without using WinRT (Capturing a window on Win 10 without WinRT). It would seem, after a lot of research, there isn't right now. I found this answer posted by…

bluetooth16
- 11
- 2
0
votes
0 answers
Move window and present swapchain in one transaction
I'm working on a custom GUI/overlay renderer using WinAPI and DirectX11.
The entire GUI is rendered in a semi-transparent floating window and the client area of it is constantly adjusted to match the current boundaries of UI elements.
When the…

hopeless-programmer
- 787
- 5
- 17
0
votes
0 answers
Capturing a window on Win 10 without WinRT
I am trying to capture a window (not a part of the screen) using swap chains on a Windows 10 machine without WinRT.
I ran a project with WinRT and it worked, suggesting my graphics card is capable of capturing windows.
However, I'm not getting any…

bluetooth16
- 11
- 2
0
votes
0 answers
DirectX12 E_NOINTERFACE error while trying to get IDXGIDevice*
I'm trying to initialize Direct3D and Direct2D in my code, but I'm encountering an issue when trying to obtain the IDXGIDevice interface from my ID3D12Device8 interface. When I attempt to query the interface, it returns the HRESULT E_NOINTERFACE,…

glack66
- 11
- 1
0
votes
0 answers
how to acquire the primary display IDXGIOutput in a session 0 service running under LocalSystem
I have a remote access app that uses IDXGIOutputDuplication to capture the primary display. To do that, I need to acquire the display IDXGIOutput:
// intermediate variables for casting
IDXGIOutput* pDisplay_old;
IDXGIFactory1* pFactory;
…

Tiger Yang
- 61
- 4
0
votes
1 answer
Create DXGI Swapchain for SDL2 window
I'm trying to create a DXGI swapchain for a window created by SDL2 (v2.0.18), but every time I call the IDXGIFactory5::CreateSwapChainForHwnd method, I get the E_INVALIDARG error.
Steps I'm Following
First, I create the SDL window.
Then I go about…

naguilera
- 11
- 2
0
votes
0 answers
How to draw a 10-bit color array by ID2D1DeviceContext::DrawImage or ID2D1DeviceContext::DrawBitmap?
I am trying to draw something 10-bit pixel arrays on to the HDR canvas but failed.
I add my codes base on https://github.com/vesa-org/DisplayHDRTest
The code is inserted into Game::GenerateTestPattern_CalibrateMaxFullFrameValue
I could judge from…

Eviluess
- 1