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
1 answer

mingw-w64 gcc does not recognize DXGI_FORMAT from dxgiformat.h

i just wanted to make sure i don't lose my mind here. I wanted to build a simple Direct3D 11 application and had a basic window running. I now wanted to add some actual rendering but unfortunately my compiler won't recognize the DXGI_FORMAT enum…
Yastanub
  • 1,227
  • 8
  • 19
0
votes
1 answer

Resizing Texture before sending to SinkWriter SharpDX

I'm working on Screen recording application. My problem is I need to resize the Texure2d before making sample using CreateDXGISurfaceBuffer. I'm new with Mediafoundation and upon reading the documentation I couldn't find any sample code from the…
kripto
  • 69
  • 1
  • 10
0
votes
1 answer

DXGI Integred adapter

With DXGI, I get a list of all the graphics cards. IDXGIFactory* factory; vector all_adapters; HRESULT result(S_FALSE); result = CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&factory); if (FAILED(result)) return false; for…
Range
  • 416
  • 7
  • 20
0
votes
1 answer

Render Material from Desktop Duplication API

I am fairly new to UE4 and C++ but have been a web developer for about 10 years. /lifestory I am attempting to render a material (I think; not sure of the terminology) that can be applied to a plane/cube/flat surface that will act as a duplication…
Joe
  • 6,401
  • 3
  • 28
  • 32
0
votes
1 answer

Errors compiling shader - DirectX11

I have been struggling with some compilers errors since yesterday, trying to compile a DirectX11 project. Everything was working well until i created and defined an object to render. I added, for this, a shader (type effect). The compiler told me…
Myriam Sarah
  • 128
  • 1
  • 2
  • 10
0
votes
0 answers

Memory leak in Creating Direct2D Device

For testing purposes, I put the code into a for loop which creates and releases one thousand Direct2D devices but it never free up the allocated memory: for (UINT i = 0; i < 1000; i++) { hr = m_lpD2DFactory->CreateDevice(lpDxgiDevice,…
Mehrzad Chehraz
  • 5,092
  • 2
  • 17
  • 28
0
votes
1 answer

CreateDXGIFactory2 - unresolved symbol - dxgi.lib

i'm currently trying to create some basic's with DirectX, but i'm currently stuck because i cant seem to find the external symbol "CreateDXGIFactory2". I've included the lib "dxgi.lib" but it cant find the external symbol. I've also looked in the…
J. Doe
  • 1
  • 1
0
votes
0 answers

Media Foundation.Net SinkWriter Error

I'm trying to encode a direct x buffer using MediaFoundation. My Direct X Texture Format is B8G8R8A8_UNorm and my media input subtype in my Sink Writer is ARGB32 When I run the program the system hang for a couple of minute and then it close. I…
kripto
  • 69
  • 1
  • 10
0
votes
1 answer

SharpDX MapSubresource is vertically flipped C#

How can I flipped the SharpDX.Databox without converting it to bitmap? I'm making a screen recording using SharpDX and Media foundation. Below is the code on how I get the Databox. mapSource = device.ImmediateContext.MapSubresource(screenTexture,…
kripto
  • 69
  • 1
  • 10
0
votes
1 answer

Extract dirty rects RGB pixel buffer data DirectX

I'm using Desktop Duplication from Windows API. Here is the code to access next frame and get the rectangle of pixels that have change from previous frame. // // Get next frame and write it into Data // _Success_(*Timeout == false && return ==…
X6Entrepreneur
  • 971
  • 2
  • 10
  • 30
0
votes
1 answer

how to convert dx10 dds image to png using DirectXTex

I've been working with DirectXTex tools and was wondering if is possible to use texconv.exe backwards, to convert DDS -> TGA (or other supported format) instead of TGA, BMP, PNG -> DDS. To convert PNG image to DDS can be done like this: texconv -f…
t4d_
  • 493
  • 1
  • 7
  • 14
0
votes
0 answers

Flip model swap chain doesn't acknowledge menu bar

I'm trying to change my program from using a bitblt model swap chain (those created with DXGI_SWAP_EFFECT_DISCARD, the default used by most samples), to a flip model swap chain (DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL), because it's much faster. The…
user1610015
  • 6,561
  • 2
  • 15
  • 18
0
votes
1 answer

Direct2d CreateSharedBitmap crashes

I'm trying to create a shared bitmap to share a D3D11Texture2d with Direct2d rendering. After creating the texture and render target I attempt to make a shared bitmap, however the call crashes with a memory access error within d2d1!GetParentTexture.…
rohotomase
  • 23
  • 5
0
votes
1 answer

Desktop Duplication and C++ AMP incompatible?

I want to capture and compress the screen on the GPU. C++ AMP and DXGI Desktop Duplication each work individually, but don't seem to work together. Example: This project works great, but adding minimal C++ AMP code near the top of…
Tom Sirgedas
  • 3,208
  • 20
  • 17
0
votes
0 answers

IDXGIFactory1::isCurrent(), when does it return TRUE?

I'm using IDXGIFactory1::isCurrent() to detect when display topology has changed. The documentation says; FALSE, if a new adapter is becoming available or the current adapter is going away. TRUE, no adapter changes. IsCurrent returns FALSE to …
jossgray
  • 497
  • 6
  • 20