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

DirectX - Sharing resource handle among different threads

I created a texture with flags D3D11_RESOURCE_MISC_SHARED_NTHANDLE | D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX as described in the documentation to share it among different devices (I have multiple threads concurring to read that resource once…
Dean
  • 6,610
  • 6
  • 40
  • 90
2
votes
0 answers

How to disable cursor pointer in Desktop Duplication API

I am working with this solution DXGI desktop duplication sample its fine for capturing single monitor but when I do extended monitor (below image : enable extended monitor) the mouse cursor is embedded with captured image. This issue is coming only…
Krish
  • 376
  • 3
  • 14
2
votes
2 answers

DXGI 1.5 DuplicateOutput1 fails with DXGI_ERROR_UNSUPPORTED (0x887a0004)

For some reason DuplicateOutput1 fails where DuplicateOutput does not. #include #include int main() { ID3D11Device *device; D3D_FEATURE_LEVEL levels[] = { D3D_FEATURE_LEVEL_11_1 }; D3D11CreateDevice(NULL,…
Dizzy
  • 892
  • 3
  • 12
  • 24
2
votes
0 answers

Incompatible DXGI format and alpha mode when creating Direct2D Image source

The problem I’m having trouble creating an Direct2D image source from a DXGI surface. I’m creating a Windows 10 UWP app in Visual Studio 2017, with the part that handles graphics written in Direct2D/3D in C++. Basically, I get an array with…
Lillemor Blom
  • 135
  • 12
2
votes
2 answers

MF SinkWriter Write Sample Failed

I'm trying to encode the ID3D11Texture2D to mp4 using MediaFoundation. Below is my current code. Initializing Sink Writer private int InitializeSinkWriter(String outputFile, int videoWidth, int videoHeight) { IMFMediaType mediaTypeIn =…
kripto
  • 69
  • 1
  • 10
2
votes
2 answers

How do I pass a handle of DXGI shared resource to another process?

https://msdn.microsoft.com/en-us/library/windows/desktop/bb174562(v=vs.85).aspx According to the documentation of IDXGIResource::GetSharedHandle, I should be able to "marshal this handle to another process to share a resource with a device in…
sean
  • 468
  • 5
  • 10
2
votes
1 answer

can't acquire IDXGIDevice or IDXGIDevice1 from ID3D12Device in dx12

I'd like to call IDXGIDevice1::SetMaximumFrameLatency method from my dx12app, for that I need to get a valid IDXGIDevice1 from the current Direct3D 12 device. querying the interface return a E_NOINTERFACE: IDXGIDevice * pDXGIDevice; HRESULT hr =…
K Klip
  • 21
  • 1
  • 2
2
votes
1 answer

Intel Integrated Graphics misidentification (DXGI)

I'm filling a window with a blank swap chain that's being handled by DirectX 12. While fooling a round a bit with Explicit Multi-Adapter, I came across this weird behaviour... As shown in pretty much all DX12 demo code in existence so far, I loop…
2
votes
0 answers

How to programmatically get/access/identify HDMI port on video Adapter

My requirement is to render frames over HDMI so that it can be displayed on the attached output display device as an overlay on its Video. My researched showed that Direct3D DXGI will be a good approach to achieve the frames rendering. So i…
G droid
  • 956
  • 5
  • 13
  • 36
2
votes
1 answer

Draw in Present() hook without destroying existing content

I am writing a universal overlay app (not a cheat) for DX11 fullscreen applications. I am a complete newbie in DX11 and try to catch up fast as I am under time pressure with the project. Hoping for your help. I am injecting a dll and hooking DX11…
John
  • 7,507
  • 3
  • 52
  • 52
2
votes
1 answer

Rendering a live preview of a background desktop in Windows

I have been looking at the DXGI Desktop Duplication Sample on msdn, which looks very nice but it isn't clear that it will work for what I want to do. What I would like to do is to use the Win32 Desktop api's to create a new desktop (CreateDesktop)…
justin.m.chase
  • 13,061
  • 8
  • 52
  • 100
2
votes
4 answers

ID3D11Texture2D to ID2D1Bitmap, is it possible?

I am working on a extension to a game which only opens a HDC for addon developers to draw on. However, I have exhausted GDI+/Direct2D drawing possibilities that is fast enough for what I want to accomplish - image effects(Additive, Blend, Multiply…
user3416064
  • 51
  • 1
  • 5
2
votes
1 answer

Can I emulate DXGI_FORMAT_NV12 in Direct3D under Windows 7?

I need to convert an RGB texture to the NV12 format which the video codec understands (Y plane immediately followed by UV plane). DXGI_FORMAT_NV12 provides a straightforward view format mapping using R8 for Y and R8G8 for UV, so I use two pixel…
Timothy003
  • 2,348
  • 5
  • 28
  • 33
2
votes
1 answer

DWM Screen Capturing with DirectX IDXGIOutput::GetDisplaySurfaceData

I am trying to capture DWM's DirectX surface by using DXGI and GetDisplaySurfaceData() using Direct3D 10/11. However, when I am taking ownership of the adapter's output with IDXGIOutput::TakeOwnership() before calling to GetDisplaySurfaceData(),…
iank
  • 336
  • 4
  • 8
2
votes
1 answer

SharpDx windowResize

I'm trying to implement an update to the backbuffer as soon as my window size has been changed. So my Objects wont get streched. So I tried this _renderForm.Resize += OnRenderFormOnResize; private void OnRenderFormOnResize(object sender, EventArgs…
Rey
  • 85
  • 1
  • 9