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
0
votes
0 answers

How to Clip out a region of IDXGISurface?

I am a beginner so my question might sound silly. I have a IDXGISurface which holds some data/image. I wish to crop certain rectangle areas out of it and store it into same IDXGISurface or another similar surface. I believe Direct2D provides a way…
SentyGuy
  • 11
  • 1
0
votes
1 answer

Is there a way to call SetPrivateData on a ID3DUserDefinedAnnotation?

I'm trying to name every COM object instantiated by DXGI or D3D11 in my application so they can be viewed nicely in debuggers. I'm stuck on the ID3DUserDefinedAnnotation interface, queried from the ID3D11DeviceContext. I cannot find an interface…
0
votes
1 answer

DXGI Presentation Max Frame Latency

For apps with a present interval of 1 and interacts with user input, I am trying to understand if there's any motivations/scenarios to set max frame latency > 1 via IDXGIDevice1::SetMaximumFrameLatency. It's clear the benefit of a low max frame…
lancery
  • 658
  • 1
  • 6
  • 18
0
votes
2 answers

Problems to understand DXGI DirectX 11 Desktop Duplication to get a Buffer or Array

I want to understand DXGI Desktop Duplication. I have read a lot and this is the code I copied from parts of the DesktopDuplication sample on the Microsoft Website. My plan is to get the Buffer or Array from the DesktopImage because I want to make a…
Boke
  • 75
  • 2
  • 7
0
votes
1 answer

ReportLiveObjects getting the logs programmatically

I have my app using IDXGIDebug::ReportLiveObjects to report some memory leaks. But I'd like to pipe these logs through my own log system. I could not find much info online. Anyone knows how I could access these DXGI logs programmatically besides…
gmmo
  • 2,577
  • 3
  • 30
  • 56
0
votes
1 answer

IDXGISwapChain::ResizeBuffers triggers breakpoint when switching from fullscreen to windowed

Whenever my Direct3D 11 application switches from fullscreen to windowed mode, IDXGISwapChain::ResizeBuffers triggers a breakpoint. In Visual Studio's console, the message "Critical error 0xc0000374" is printed, with no other information. …
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
0
votes
1 answer

Linker error with DXGI when passing IID_IDXGIDevice to IUnknown::QueryDevice

I am trying to separate Swapchain and Window creation from D3D10 device creation in my rendering framework meaning that I can't really use D3D10CreateDeviceAndSwapChain. I am running into an unexpected linker error when trying to build my test…
Neil M
  • 666
  • 8
  • 14
0
votes
1 answer

IUnknown pointer reference

Why is the Visual Studio compiler happy with void fn(int *&i) { ; } and void fn(IUnknown *const &p) { ; } but not void fn(IUnkown *&p) { ; } where calling it looks like IDXGIFactory *df = nullptr; // init df fn(df); compiler error…
Carl
  • 887
  • 1
  • 7
  • 6
0
votes
1 answer

Check when the application has gone fullscreen. (DXGI/DirectX10)

this is my question... There is a way to check when the application has gone fullscreen in DXGI (DX10/11). For going Fullscreen I mean that the system has COMPLETED the mode change. Cause i need it for my application to prevent deadlock and to…
feal87
  • 927
  • 3
  • 11
  • 29
0
votes
2 answers

Modifying the screen of existing Direct2D application

This question is related to: Which API Microsoft Word (Office 2013) is using the paint the screen, which was left unanswered. I have an Office plug-in (native C++) which is fairly involving with Office. Using hooks I'm modifying the client area of…
Uri London
  • 10,631
  • 5
  • 51
  • 81
0
votes
1 answer

E_NOINTERFACE when calling CreateDXGIFactory1

I am relatively new to C++ in general, and very new to Windows development. I am writing a program that uses the DXGI library - it compiles just fine, but when I run the executable, the HRESULT from the CreateDXGIFactory1 comes out as 0x80004002, or…
javanix
  • 1,270
  • 3
  • 24
  • 40
0
votes
3 answers

Where is DXGI1_2.h under Windows 7?

I am using Visual Studio 2008 to compile some code under Windows7. But there is an error: Error 44 fatal error C1083: Cannot open include file: 'DXGI1_2.h': No such file or directory…
Watterry
  • 756
  • 9
  • 22
0
votes
2 answers

IDXGIObject::GetParent and Release

The IDXGIObject has a function to obtain a pointer to its parent GetParent. Unfortunately, the docs don't say whether I have to call Release() on the returned interface or not -- calling or not calling it works fine in both debug/release (that is,…
Anteru
  • 19,042
  • 12
  • 77
  • 121
0
votes
1 answer

What should I do with multiple swapchains in DXGI?

It's confusing here. Is it that one swap chain cannot be accessed concurrently, or DXGI is completely not thread safe? If I have 2 swap chains for 2 display on one card, what is the best way I swap them? I can hardly find any resource on multiple…
BlueWanderer
  • 2,671
  • 2
  • 21
  • 36
-1
votes
1 answer

ID3D10Texture2D scroll contents

I am a novice user of DirectX technologies. How can I scroll a contents of ID3D10Texture2D? using bitblt. Something like BitBlt on GDI device context where src and dst hdc are the same. I have ID3D10Texture2D from IDXGISurface which scrolling is my…
Roman
  • 999
  • 3
  • 12
  • 23
1 2 3
16
17