dxgi

Is it possible to create a winapi window with only borders

坚强是说给别人听的谎言 提交于 2021-02-14 18:31:37
问题 So I'm trying to create a window that only shows its borders and have the rest of the body be see through. I've created a mockup of what that would look like in my head: I tried blitting in a buffer with transparent pixels but that did not have the desired effect. Any ideas ? 回答1: This is possible by passing the WS_EX_NOREDIRECTIONBITMAP 1 extended window style to a call to CreateWindowEx. This prevents the system from allocating a render surface for the window's client area, leaving the

Programmatically set Graphics Performance for an app

丶灬走出姿态 提交于 2021-02-07 04:20:57
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

Programmatically set Graphics Performance for an app

谁说胖子不能爱 提交于 2021-02-07 04:17:57
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

Programmatically set Graphics Performance for an app

做~自己de王妃 提交于 2021-02-07 04:16:24
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

廉价感情. 提交于 2021-01-21 10:50:13
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

本秂侑毒 提交于 2021-01-21 10:49:26
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

不问归期 提交于 2021-01-21 10:48:08
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the

DXGI fails to scan 60 fps pixels

本小妞迷上赌 提交于 2020-12-15 05:26:34
问题 #include "D3D9.h" #include <Wincodec.h> #include <chrono> #include <shellapi.h> #include <d3d11.h> #include <dxgi1_2.h> #include <Atlbase.h> #include <comdef.h> #include <windows.h> #include <shlobj.h> #include <shellapi.h> #include <dxgi1_2.h> #include <d3d11.h> #include <memory> #include <algorithm> #include <string> #include <iostream> #pragma comment(lib, "D3D11.lib") #pragma comment(lib, "D3d9.lib") #pragma comment(lib, "dxgi.lib") #pragma comment(lib, "gdi32.lib") //using namespace

DXGI scans pixels at 10 fps and uses more memory

笑着哭i 提交于 2020-12-15 00:45:03
问题 Good afternoon. I apologize in advance for my bad code, because I have not yet brought it into a good form. The bottom line is to take pixels from the desktop at 60 fps, but mine runs at 10 fps and also uses too much memory. Please help me understand where I was wrong, thanks. I had an assumption that I was not resetting something, but I think have taken this into account by calling SAFE_RELEASE. To get the pixels, I used this code: How to access pixels data from ID3D11Texture2D? #include

DXGI scans pixels at 10 fps and uses more memory

给你一囗甜甜゛ 提交于 2020-12-15 00:44:17
问题 Good afternoon. I apologize in advance for my bad code, because I have not yet brought it into a good form. The bottom line is to take pixels from the desktop at 60 fps, but mine runs at 10 fps and also uses too much memory. Please help me understand where I was wrong, thanks. I had an assumption that I was not resetting something, but I think have taken this into account by calling SAFE_RELEASE. To get the pixels, I used this code: How to access pixels data from ID3D11Texture2D? #include