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
2
votes
1 answer
Direct3D YUV Formats?
How do the YUV texture formats in Direct3D 11 for Windows 8 work? The documentation is a bit sparse and I haven't found any examples.
When reading from such textures in a shader, will texture.rgb be the same as .yuv or does an automatic conversion…

ronag
- 49,529
- 25
- 126
- 221
2
votes
0 answers
Limitations of Windows 8 Desktop duplication using DXGI?
I am working on a remote desktop application which works fine on windows 7 and its previous version. but In windows 8 mirror driver has removed so that we have to develop the same remote desktop feature using DXGI. I have read the documentation but…

Mak
- 1,057
- 1
- 12
- 30
2
votes
1 answer
Swapchain.Present() taking far too long, causing lag
I've recently been getting a bit of lag since I moved all of my c# SlimDX DX11 rendering code from my Form (yes, I'm a lazy developer) to bespoke classes. I whacked my program into EQATEC Profiler and got this as the major contributor to my…

Nick Udell
- 2,420
- 5
- 44
- 83
1
vote
0 answers
How to change MSAA settings after creating the swap chain D3D11
Before i create the device and swap chain using D3D11CreateDeviceAndSwapChain,
i have to fill out the DXGI_SWAP_CHAIN_DESC structure.
There is a function that returns the highest quality level supported for "X" sample count.
But It Is a part of the…

Artur Moszczyński
- 11
- 1
1
vote
1 answer
Desktop Duplication - Limiting the Framerate
Using the Windows Desktop Duplication API, I want to limit the capture of the monitor to no more than 60fps. I know the AcquireNextFrame() has a 'wait' parameter, so maybe this can be used to limit the framerate although I am unsure how. I also…

unstuckkk
- 13
- 2
1
vote
0 answers
Have Direct2D, DXGI SwapChain, HWND transparency, all working at once in C++, without XAML or similar
Context
I have 2 big projects I'm working on: a game engine, and a file explorer replacement. My focus is Windows only. I know they're 2 huge things I'll likely never complete, I just enjoy coding during free time.
Across my many projects I started…

Barnack
- 921
- 1
- 8
- 20
1
vote
1 answer
Incorrect automatic full screen resolution
The problem briefly.
I'm just starting out with Direct3D 11 and DXGI and I've encountered a problem which plagues me not only in my project, but also in other games as well. When I start my application in full screen mode for some reason it doesn't…

bub1ick
- 21
- 6
1
vote
1 answer
Get HWND from dxgi swapchain / d3d11 device
I've got a dxgiswapchain and d3d11device, and I would like to fetch a HWND from either of the two.
void OnPresent(IDXGISwapChain *swapChain) {
ID3D11Device *device = NULL;
swapChain->GetDevice(__uuidof(ID3D11Device), (void**)&device);
}
How…

Bork
- 21
- 4
1
vote
2 answers
DX12) Even though they are ComPtr, Live Objects apears When Process Terminated
I'm making a ray tracing DX12 renderer, but ComPtr doesn't seem to release properly when I exit the process.(Press the x button to exit the window, or exit via WM_CLOSE or WM_DESTROY)
They are ComPtr and I think I didn't do anything about copying or…

Shark_Bladder
- 67
- 7
1
vote
1 answer
Understanding D3D11_BOX
I've made some modifications to https://github.com/NVIDIA/video-sdk-samples/tree/master/nvEncDXGIOutputDuplicationSample to convert the desktop image to a cv mat.
I have a dx11 2d texture and I want the 640x640 center of the texture (cropping in…

user19250735
- 33
- 5
1
vote
1 answer
CreateSwapChainForHwnd with multiple child windows doesn't render to the right area on the display
Edits. I'm switching for HwndRenderTargets to DeviceContexts and SwapChains for Hwnd in a Direct2d + Win32 application and the render target is not rendering completely on the swap chain.
class direct2dWindow : public direct2dContext
{
…

TJ Bandrowsky
- 842
- 8
- 12
1
vote
0 answers
IDXGISwapChain->ResizeBuffers does not work as expected with WM_SIZING
I have the following WNDPROC:
LRESULT CALLBACK window_processing(HWND window, UINT message, WPARAM wPara, LPARAM lParam) {
#if WITH_DEBUG_UI
if(ImGui_ImplWin32_WndProcHandler(window, message, wPara, lParam)) {
return true;
…

Raildex
- 3,406
- 1
- 18
- 42
1
vote
1 answer
Desktop region capture with Vortice.DXGI return black bitmap
When capturing the desktop using Vortice with the code below it works just fine. Although, when I try to use any other value than 0 for the X or Y location of the rectangle it only returns frame as a black bitmap. The code I used for reference is…

Jon Huthsing
- 11
- 1
1
vote
0 answers
What is the direction for interoperability between Desktop Duplication API and Vulkan
How do or will interoperability of surfaces / textures work between APIs going forward?
Let's say we all continue to move to Vulkan. However, the best way to capture (for my application) is DXGI Desktop Duplication. How will these connect?
In the…

Ammo Goettsch
- 838
- 8
- 11
1
vote
1 answer
Why the ID3D11DeviceContext::map() function didn't work and return E_INVALIDAGR (one or more argument are invalid)
When I want to use DXGI Duplication API to take screenshots, the deviceContext->map() always failed. It returns E_INVALIDAGR (one or more arguments are invalid). However, I don't think there are any arguments invalid. I don't know how to solve this…

ton197
- 11
- 2