directx-11

Is there a programmatic way to see what graphics API a game is using?

杀马特。学长 韩版系。学妹 提交于 2020-08-06 04:46:57
问题 For games like DOTA 2 which can be run with different graphics API's such as DX9, DX11, Vulkan, I have not been able to come up with a viable solution to checking which of the API's its currently using. I want to do this to correctly inject a dll in order to display images over the game. I have looked into manually checking what dll's the games have loaded, this tool for example: https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls however, in the case of DOTA, it loads in both

Is there a programmatic way to see what graphics API a game is using?

感情迁移 提交于 2020-08-06 04:46:10
问题 For games like DOTA 2 which can be run with different graphics API's such as DX9, DX11, Vulkan, I have not been able to come up with a viable solution to checking which of the API's its currently using. I want to do this to correctly inject a dll in order to display images over the game. I have looked into manually checking what dll's the games have loaded, this tool for example: https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls however, in the case of DOTA, it loads in both

ID3D11Texture2D to ID2D1Bitmap, is it possible?

你离开我真会死。 提交于 2020-05-11 03:04:10
问题 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 Blend etc). I am well aware that Direct2D offers a effects toolkit however, that requires a platform update (for Windows 7) and that is not ideal at all. Hence I am left with only Direct3D. MSDN/Google Search offers lots of ways to do D2D -> D3D,

ID3D11Texture2D to ID2D1Bitmap, is it possible?

我怕爱的太早我们不能终老 提交于 2020-05-11 02:59:51
问题 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 Blend etc). I am well aware that Direct2D offers a effects toolkit however, that requires a platform update (for Windows 7) and that is not ideal at all. Hence I am left with only Direct3D. MSDN/Google Search offers lots of ways to do D2D -> D3D,

ID3D11Texture2D to ID2D1Bitmap, is it possible?

跟風遠走 提交于 2020-05-11 02:59:14
问题 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 Blend etc). I am well aware that Direct2D offers a effects toolkit however, that requires a platform update (for Windows 7) and that is not ideal at all. Hence I am left with only Direct3D. MSDN/Google Search offers lots of ways to do D2D -> D3D,

CLSID_D2D1ChromaKey issues

久未见 提交于 2020-03-24 14:14:21
问题 I try to use DirectX ChromaKey effect, but my function stucks on some step. What I do: Create ID2D1Factory1 Create ID3D11Device and ID3D11DeviceContext Obtain DXGIResource from received texture Obtain shared handle from DXGIResource Open DXGIResource as new ID3D11Texture2D using ID3D11Device Obtain D3D11_TEXTURE2D_DESC of new ID3D11Texture2D Create new ID3D11Texture2D using input ID3D11Texture2D and D3D11_TEXTURE2D_DESC Copy resource from obtained ID3D11Texture2D to created ID3D11Texture2D

What does *.hlsl files do, what the relationship between this file and *.fx file?

余生长醉 提交于 2020-02-24 20:29:18
问题 I am reading an example of DirectX project, I saw *.fx and *.hlsl files. I know fx is effect file which is read by DirectX, but what's purpose of hlsl file? Are this files useful? 回答1: Historically fx contains shaders using the Effects system syntax ( technique , pass , etc.) while hlsl contains pure HLSL shaders without Effects system syntax. This is, however, purely a convention and one that is not actually followed particularly consistently. In the end, all that matters is what profile you

What does *.hlsl files do, what the relationship between this file and *.fx file?

拟墨画扇 提交于 2020-02-24 20:25:14
问题 I am reading an example of DirectX project, I saw *.fx and *.hlsl files. I know fx is effect file which is read by DirectX, but what's purpose of hlsl file? Are this files useful? 回答1: Historically fx contains shaders using the Effects system syntax ( technique , pass , etc.) while hlsl contains pure HLSL shaders without Effects system syntax. This is, however, purely a convention and one that is not actually followed particularly consistently. In the end, all that matters is what profile you