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
0
votes
1 answer
Is there a simple and efficient way to read files and convert them to the specified DXGI_Format and decode output sizes?
I read a mp4 file(H264 encodec) asynchronously, and I have configured the relevant parameters before, but when I finally pass the sample through CopyResource to the target texture shared, it always fails as below.
D3D11 ERROR:…

fredirty2017
- 103
- 11
0
votes
1 answer
Window Capture with DXGI
I have a working version of desktop capture using DXGI.
Is there a way to capture a separate window(HWND) using the same manager?

Nikolay
- 13
- 3
0
votes
1 answer
A D3D11_USAGE_STAGING Resource cannot be shared via D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX
I try to create new ID3D11Texture2D for map it to DXGI_MAPPED_RECT further.
I receive some ID3D11Texture2D that I have no power on (can not change way of creation of).
Here is the part of the code:
CComPtr…

Olga Pshenichnikova
- 1,509
- 4
- 22
- 47
0
votes
1 answer
ChromaKey in DirectX
I need implement some chroma key functionality with Direct2d.
I have some code example from MSDN:
ComPtr chromakeyEffect;
m_d2dContext->CreateEffect(CLSID_D2D1ChromaKey, &chromakeyEffect);
chromakeyEffect->SetInput(0,…

Olga Pshenichnikova
- 1,509
- 4
- 22
- 47
0
votes
2 answers
How to create 2D texture using DXGI format DXGI_FORMAT_R1_UNORM?
I want to create a 1 bit per pixel monochrome texture 2D in DirectX 11 using dxgi format DXGI_FORMAT_R1_UNORM
I have done trying the following but it's showing following errors:
D3D11 ERROR: ID3D11Device::CreateTexture2D: Device does not support…

Tajuddin Khandaker
- 660
- 6
- 20
0
votes
0 answers
How can I avoid the window to increase in size when swapping to windowed mode
In my DirectX program, I have an algorithm for resizing the render target so it fits the screen when changing to full screen mode (vertically on 4:3 and horizontally in 16:9, creating a letterbox effect). It works fine on full screen, but every time…
0
votes
0 answers
how can i know if an amd graphic card is dedicated or not with d3d11(or dxgi)?
I try to use graphics card to do some heavy computation(direct compute), and I hope it only enabled with dedicated graphics card, since a integrated graphics card is too weak for my program.
I got the following info by using DXGI:
typedef struct…

Iverson Sun
- 13
- 3
0
votes
0 answers
What can cause IDXGISwapChain2's frame latency waitable to timeout?
What can cause IDXGISwapChain2's frame latency waitable to timeout?
I'm trying to implement this recommendation from Microsoft: Reduce latency with DXGI 1.3 swap chains, but this code here from the article:
DWORD result = WaitForSingleObjectEx(
…

Jean-René Friton
- 93
- 9
0
votes
0 answers
D3D11 - How to deal with SLI and Nvidia Surround?
Is it needed to worry about Nvidia SLI with or without Surround while enumerating adapters and outputs?
Assume a fictional build:
(2x) GTX 960 in SLI
(3X) 1920x1080 displays attached in landscape mode by Surround, yielding 5760x1080
While using…

Abrar Borno
- 373
- 1
- 3
- 10
0
votes
0 answers
How can I detect fullscreen change or exit with DXGI and SetFullScreenState(...) with Directx10?
I didn't found the solution of the problem described below for days :
So, I need to know how to get the moment when my directx application has finished going fullscreen or windowed mode, especially when it has totally completed the process.
I read…

Ultimomo
- 1
- 2
0
votes
0 answers
DXGI Desktop Duplication causes stuttering with FreeSync/G-Sync
Using DXGI Desktop duplication with FreeSync/G-Sync monitor causes stuttering in full screen games. It happens in games which are in the "borderless fullscreen" mode by Windows 10 (you can check it e.g. when you change volume, you see the slider in…

Daniel
- 58
- 6
0
votes
0 answers
Windows Desktop Duplication API AcquireNextFrame avoid DXGI_ERROR_WAIT_TIMEOUT
I am using the desktop duplication API right now to record my desktop. I want it to record at at least 30FPS. I noticed that AcquireNextFrame would often return DXGI_ERROR_WAIT_TIMEOUT if I set the time out period to be 33 (33ms is approximately…

ktb92677
- 407
- 4
- 16
0
votes
2 answers
How to query true display bit depth under Windows 10?
I'm struggling to find any win32 api call that can correctly identify the bit depth of a connected monitor in terms of bits per channel. The attached screenshot shows the setting visible.
With DXGI it is possible to enumerate all modes on an output…

kaidoe
- 79
- 6
0
votes
1 answer
what is the IDXGIFactory1::IsCurrent work for?
I notices that IDXGIFactory1 only add two interface from IDXGIFactory, which are EnumAdapter1 and IsCurrent.
1.So, what is the use of IsCurrent?

MiC
- 185
- 7
0
votes
1 answer
Is CreateDXGIFactory always create the newest version of IDXGIFactory system support?
I use CreateDXGIFactory to create a IDXGIFactory(the oldest version), and then use this IDXGIFactory to query IDXGIFactory6, it succeed.(My system version is Win10 1803).
1.So, is this fuction CreateDXGIFactory always create the newest version of…

MiC
- 185
- 7