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
4
votes
2 answers
How to check if a true hardware video adapter is used
I develop an application which shows something like a video in its window. I use technologies which are described here Introducing Direct2D 1.1. In my case the only difference is that eventually I create a bitmap…

Eugen
- 479
- 5
- 16
4
votes
0 answers
AcquireNextFrame customize dimension
I'm using AcquireNextFrame to make a screenshot of my desktop. Is it possible to set a dimension of the image I want.
For example : default resolution of my computer is 1920x1080 and I would like to get the image in 1280x720.
I call this function…

X6Entrepreneur
- 971
- 2
- 10
- 30
4
votes
5 answers
Is there any way to omit a window from Desktop Duplication?
I'd like to be able to show a window containing a message that is displayed to the user but which is not captured by Desktop Duplication. Is that possible?
Alternatively, is there a way I can draw over the top of the desktop surface before it gets…

Dan Groom
- 351
- 4
- 12
4
votes
1 answer
Understanding DXGI
The DXGI Overview on MSDN says that the Direct3D API (10, 11 and 12) sits on top of DXGI wheras DXGI sits on top of the Hardware which is illustrated by the following picture:
The article further mentions that the tasks of DXGI basically are…

Sam
- 1,301
- 1
- 17
- 26
4
votes
1 answer
Getting DXGI swapchain by HWND
There is a simple application which works as a manager of MS RDP sessions. You open RDP sessions to different computers and then you can see their previews in a common monitoring panel.
An OLE control is used to organize an RDP…

Eugen
- 479
- 5
- 16
4
votes
1 answer
Desktop Duplication API & switchable graphics
The problem: calling IDXGIOutput1::DuplicateOutput method returns DXGI_ERROR_UNSUPPORTED when you run an application using discrete graphics controller on a machine with switchable graphics.
This answer shed some light on the issue. In short, the…

cyril.andreichuk
- 343
- 3
- 11
4
votes
0 answers
MF SinkWriter memory problems
I try to encode images of my desktop (1920x1080) to a video file using DXGI Desktop Duplication API and MF Sink Writer. My encoding thread looks like this:
#define RETURN_ON_BAD_HR(expr) \
{ \
HRESULT _hr_ = (expr); \
if (FAILED(_hr_)) { \
…

prazuber
- 1,352
- 10
- 26
4
votes
2 answers
Why use the same IDXGIFactory for Device and Swap Chain
The reference of the IDXGIFactory interface tells me, that in order to create a swap chain, I might use the same factory that was used to create the Direct3D device:
Because you can create a Direct3D device without creating a swap chain, you might…

Sam
- 1,301
- 1
- 17
- 26
4
votes
0 answers
How can I render the images on the monitor (or TV) connected to HDMI port of my computer
I am pretty new to DirectX 10 programming, and I have been trying to do the following with my limited skills..
I am trying to display an Image from one machine on to another output device(Another Monitor/TV) connected via HDMI. I researched on it…

G droid
- 956
- 5
- 13
- 36
4
votes
2 answers
IDXGIFactory::EnumAdapters() does not return any adapters
I'm developing an DirectX11 application. During initialization I enumerate the available graphics adapters as described here.
Now, for one of our customers the number of available adapters appears to be zero:
EnumAdapters(0, &pAdapter) already…

Roman Reiner
- 1,089
- 1
- 10
- 17
4
votes
1 answer
Directx 11 Front Buffer
I am hoping this is a easy answer to an easy question which I cannot find an answer to.
How do I access the front buffer in Directx 11 / DXGI? I have found in Directx 9 you can use GetFrontBufferData() and you can use GetBuffer() in Directx 11 to…

user2600628
- 95
- 1
- 8
4
votes
2 answers
DXGI Warning when using OpenGL on Windows 8?
I'm writing a CAD application using OpenGL (not DirectX). When running the debug build on Windows 8 Pro (64bit), the following messages are printed to the debugger's console windows before the application terminates correctly:
DXGI WARNING: Process…

Daniel Gehriger
- 7,339
- 2
- 34
- 55
3
votes
1 answer
How to get pixel data out of an IDXGISurface created with GPU access only?
In broad strokes, what I'm trying to accomplish is capture (part of) the screen and transform the capture into a digital image format. The following steps outline what I believe to be the solution:
Set up a Direct3D11CaptureFramePool and subscribe…

IInspectable
- 46,945
- 8
- 85
- 181
3
votes
0 answers
Enforce use of independent flip mode with DXGI FLIP SwapChain
I currently face a problem with DXGI Swapchains (DirectX 11). My C++ application shows (live) video and my goal is to minimize latency. I have no user input to process.
In order to decrease latency I switched to a DXGI_SWAP_EFFECT_FLIP_DISCARD…

Werner K
- 31
- 2
3
votes
0 answers
Adjust value set in IDXGISwapChain2::SetMaximumFrameLatency
I use the combination of DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT, GetFrameLatencyWaitableObject() and SetMaximumFrameLatency(UINT MaxLatency) to control the input lag vs. smoothness of my application as explained at…

Emil
- 16,784
- 2
- 41
- 52