Questions tagged [dxgi]

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.

248 questions
1
vote
1 answer

Why IDXGIAdapter cannot cast to IDXGIFactory?

I understand that DirectX does not follow the COM standard. However, they look heck of a lot similar, hence my confusion. For simplicity, I use the word 'COM' very loosely, and I omit all HRESULT handlings, so please bear with me. Correct…
chckx592
  • 61
  • 1
  • 9
1
vote
0 answers

Errors while trying to capture HDR content with DXGI OutputDuplication

I'm facing a strange error while trying to Duplicate Output on an HDR screen, particularly this is triggered when launching Doom Eternal. I handle DXGI_ERROR_ACCESS_LOST error by resetting the OutputDuplication object, like…
MoltenCore
  • 21
  • 1
  • 3
1
vote
0 answers

How to render Direct3D content into ID2D1HwndRenderTarget?

In my app I render my Direct3D content to the window, as recommended, using the swap chain in flip sequential mode (IDXGISwapChain1, DXGI_SWAP_EFFECT_SEQUENTIAL), in a window without redirection bitmap (WS_EX_NOREDIRECTIONBITMAP) However for the…
user1548418
  • 457
  • 4
  • 14
1
vote
0 answers

How to draw partially transparent bitmap inside a fully transparent window?

I have a fully transparent window: wClass.cbClsExtra = NULL; wClass.cbSize = sizeof(WNDCLASSEX); wClass.cbWndExtra = NULL; wClass.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(0, 0, 0)); wClass.hCursor = LoadCursor(0, IDC_ARROW); wClass.hIcon =…
Il'ya Zhenin
  • 1,272
  • 2
  • 20
  • 31
1
vote
1 answer

what are the correct arguments for D2D1Factory::CreateDxgiSurfaceRenderTarget()

i want create direct2D render target that will render on screen with direct3D, so i try to call the D2D1Factory::CreateDxgiSurfaceRenderTarget() funtion to make a direct2D render target, but it keep fails. The error i get from HRESULT is invalid…
Giannis
  • 41
  • 6
1
vote
1 answer

Get new connected display via existing IDXGIDevice

I have a program that creates ID3D11Device device on start and destroys on shutdown. I encountered the issue when I connected the second monitor after ID3D11Device was created. In this simplified piece of code it enumerates adapter outputs and this…
1
vote
0 answers

How to get IDXGISurface data from IDXGISwapChain1

I use dxgi to capture window, since the windows maybe resized, so I use IDXGISwapChain1 and recreate framepool, but now I can't get the surface since GetRestrictToOutput always return null. void…
TONY
  • 101
  • 7
1
vote
1 answer

What is the optimal way to fetch graphics card name and info in a Windows C++ app?

I'm trying to pull some information from client machines that I'd like to be formatted almost exactly as it's seen here from "dxdiag.exe": I realize there should be an API for this type of functionality, but I've searched and searched and can't…
Skewjo
  • 379
  • 3
  • 12
1
vote
1 answer

Windows 10 Screen snip DXGI screenshot

I'm working on DXGI screenshot, there are lots of examples on google and they work fine (like https://github.com/pgurenko/DXGICaptureSample/blob/master/DXGICaptureSample/DXGIManager.cpp). Then i find Windows 10 built in Screen snip tool and have the…
herb
  • 139
  • 8
1
vote
1 answer

DXGI AcquireNextFrame receives the next frame only after 20ms (50fps), is it possible to speed up to 10ms?

Good afternoon. I'm writing a program that would record video from the desktop at 100 fps, but I ran into a problem, AcquireNextFrame receives the next image from the desktop only after 20 ms, because of this, the maximum fps that I can get will be…
TEARLESS
  • 31
  • 1
  • 6
1
vote
1 answer

Proper way to create a IDXGIFactory7

I am working on a DirectX 11 app and I am having difficulties creating an instance of IDXGIFactory7. I could not find a CreateDXGIFactory7() function so I am using CreateDXGIFactory2() like this: IDXGIFactory7* factory; HRESULT hr =…
Murrgon
  • 375
  • 4
  • 13
1
vote
1 answer

DirectX Resize shows win32 background at Edges

When resizing down in DirectX I noticed a flicker along the bottom/right edges. If you fix the size of the swapchain (in red), and set the win32 background to green you will get the following on a resize down: It appears that the window size lags…
Tom Huntington
  • 2,260
  • 10
  • 20
1
vote
2 answers

DirectX: Get InfoQueue before Device

Is there a way to get the InfoQueue or set the break parameters before the Device is created? Right now i am creating the Device and then getting the InfoQueue, but any messages that are emitted before that point are going to be ignored and buried…
beothunder
  • 551
  • 2
  • 14
1
vote
2 answers

Use a texture array as Direct2D surface render target

I try to create a Direct3D 11 texture array holding multiple pages of text rendered using DirectWrite and Direct2D. Suppose layout holds the IDWriteTextLayouts for the individual pages, then I try to do the following: { D3D11_TEXTURE2D_DESC…
Christoph
  • 1,964
  • 2
  • 27
  • 44
1
vote
1 answer

CreateDXGIFactory function throws Linker Error

I am trying to experiment on the DXGI APIs, and I was creating a console application that enumerates the available Adapters from the Factory Object. The Code Snippet is as shown below: // pFactory and vecAdapters are initialized as static…
Ashik Unni
  • 55
  • 7