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
1 answer
DXGI Screen capture distorted image
Not only that the fps drops form 60 to 20-21 but the image also looks distorted like this. Second image is what it should look like
What it looks like
What it should look like
if (captureVideo == 1) {
pNewTexture = NULL;
// Use the…

Josh
- 49
- 1
- 6
1
vote
1 answer
Do I need CreateSharedHandle to pass a ID3D11Texture2D to another thread?
As the title says: do I need to use CreateSharedHandle to pass a ID3D11Texture2D generated in a thread to another thread in the same process?
My use case is that each thread would use the texture with its own device created on the same adapter.

Dean
- 6,610
- 6
- 40
- 90
1
vote
0 answers
DirectX11 DXGI Capture Screen when in full screen
I'm currently trying to develop a personal project where I will light up LEDs according to what's happening on the screen of my computer.
I've tried several solutions to capture my screen, and DirectX11 with DXGI is the fastest way I found to have a…

Ricardo Alves
- 1,071
- 18
- 36
1
vote
1 answer
How to render ID3D11Texture2D resource using DXGISwapChain BackBuffer
capturing windows screen using AcquireNextFrame DirectX11 API, I have too much confusion on rendering part. How to render ID3D11Texture2D resource in to a window using DXGI_SWAP_CHAIN_DESC1 backBuffer.
In the code GetFrame(&Frame, &TimeOut) function…

Krish
- 376
- 3
- 14
1
vote
1 answer
Resize Texture2D SharpDX
How can I resize texture2d of SharpDX? I'm using SharpDX to Duplicate the screen and I use MediaFoundation to encode the texture into a video file. My problem is when I open an application into fullscreen and has a different resolution from system…

kripto
- 69
- 1
- 10
1
vote
1 answer
Capturing Mouse Cursor and Draw on Image Buffer c#
I'm working on a screen recording application and I can capture the screen but without mouse cursor. I used DXGI, SharpDX and Media Foundation.
My question is. Is it possible to write the mouse cursor on image buffer so the the image buffer I sent…

kripto
- 69
- 1
- 10
1
vote
0 answers
Should event registered with RegisterOcclusionStatusEvent be unregistered before DXGI factory destruction?
I'm registering occlusion event that I've created by calling IDXGIFactory2::RegisterOcclusionStatusEvent. This method gives me a cookie that I can later pass to IDXGIFactory2::UnregisterOcclusionStatus. I'm assuming that I'm still holding an…

user7860670
- 35,849
- 4
- 58
- 84
1
vote
3 answers
Convert DXGI_FORMAT to a bpp
How can you convert a DXGI_FORMAT to a bpp (bit per pixel) value without enumeration? (see formats)
e.g.:
DXGI_FORMAT_R10G10B10A2_UNORM -> 32
DXGI_FORMAT_B5G5R5A1_UNORM -> 16

Matthias
- 4,481
- 12
- 45
- 84
1
vote
1 answer
Unable to fix DXGI_ERROR_INVALID_CALL - DX12
I'm getting DXGI_ERROR_INVALID_CALL while calling CreateSwapChain.
Here's my code to create command queque.
D3D12_COMMAND_QUEUE_DESC cqDesc = {};
cqDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT;
cqDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE;
hr =…

ngub05
- 566
- 1
- 8
- 15
1
vote
0 answers
DXGI desktop capturing
I'm doing desktop capturing in a loop with DXGI. In that I call this function in loop.
dxgiSurface1->Map(&map, DXGI_MAP_READ)
But sometimes map.pBits is null. I cannot figure out at what time. It's like random times. If I increase the Sleep()…

Ishara Somathilaka
- 37
- 2
1
vote
1 answer
How to work with D3D11_FORMAT_SUPPORT
I want to apply PCF for my shadows and for that I need to set my shadow map texture format to DXGI_FORMAT_R24_UNORM_X8_TYPELESS. After setting I cannot run my program , it crashes without any errors. I think the reason is that my GPU dont suppotrs…

harut9
- 77
- 6
1
vote
2 answers
DXGI EnumOutputs - no DXGI_OUTPUT_DESC and empty display modes array
Just encountered strange problem when trying to get available display modes. Let me explain...
At first, I enumerate available adapters and push then to std::vector and this works fine:
for(UINT i = 0; pFactory->EnumAdapters(i, &pAdapter) !=…

Patryk Lipski
- 163
- 10
1
vote
1 answer
What does DXGI_MODE_SCALING_UNSPECIFIED scaling mode mean in list of modes, returned from IDXGIOutput.GetDisplayModeList?
I'm trying to create Direct3D 10/11 application with support of full screen mode. In order to do so, I have to provide list of available video modes to user. Also, it would be great to choose current desktop settings as default video mode in order…

MrMadguy
- 21
- 4
1
vote
1 answer
C++ and directx 11 Error no symbols loaded for dxgi.dll
I started to lean c++ and directx11 a few days back.
So I am no expert at it. .Please be kind enough to explain me why it had occurred ...
I created the window and stuff correctly.Even the Swapchain initializtion proceeded as expected.But I am…

user3797103
- 39
- 1
- 10
1
vote
1 answer
Switch swapchain to windowed mode
I need to release the swapchain but looks like it needs to be put it back in windowed mode.
DXGI ERROR: IDXGISwapChain::Release: Swapchain Released while fullscreen. Switch it to the windowed state first. [ MISCELLANEOUS ERROR #66: ]
Anyone knows…

gmmo
- 2,577
- 3
- 30
- 56