directx-9

Mediafoundation cant decode video on certain NVIDIA cards

时光总嘲笑我的痴心妄想 提交于 2021-02-20 04:36:26
问题 We are using the SharpDX .NET wrapper to make Mediafoundation decode an MP4 Video into a DirectX9 texture. This works fine, except that it crashes on certain NVIDIA cards for example the 940MX . For example the same machine with an Intel HD graphics card decodes the video stream fine. Unfortunately we cant get any other details than a E_FAIL/Unspecified error from SharpDX . Even with the debug layer enabled. Any ideas how to find out why it crashes? VideoMediaType outputVideoFormat;

Visual studio 2017: Cannot open include file 'd3dx9.h' no such file or directory in a static library used by .exe application

為{幸葍}努か 提交于 2021-02-08 10:27:02
问题 I am using Visual Studio 2017 and I'm required to use DirectX9.0 for a school project. I have a solution with 3 projects. One is a static library (.lib), one is an application (.exe) and one is a unit test project: KB01_Game.exe imports KB01_Engine.lib like so: KB01_Game properties KB01_Engine.lib contains the d3dx9 references like so (I have also tried reversing the order of these DXSDK references, with no success): KB01_Engine properties The files in KB01_Engine include the directx 9

Visual studio 2017: Cannot open include file 'd3dx9.h' no such file or directory in a static library used by .exe application

狂风中的少年 提交于 2021-02-08 10:23:03
问题 I am using Visual Studio 2017 and I'm required to use DirectX9.0 for a school project. I have a solution with 3 projects. One is a static library (.lib), one is an application (.exe) and one is a unit test project: KB01_Game.exe imports KB01_Engine.lib like so: KB01_Game properties KB01_Engine.lib contains the d3dx9 references like so (I have also tried reversing the order of these DXSDK references, with no success): KB01_Engine properties The files in KB01_Engine include the directx 9

Alpha Blending problems in DirectX9

爷,独闯天下 提交于 2021-02-07 10:51:41
问题 I am quite desperate to achieve desired alpha blending results in DirectX. I am try to draw texture, and on it a color triangle strip. Despite all my attempts it seems that color of the strip is affected by the color of the texture drawn before. Even if I set D3DRS_ALPHABLENDENABLE to FALSE, I still see the color affected. Here is how the image suppose to looks like (Rendered with openGL) And here is what I get with directX rendering: As you can see, the second image purple strip has yellow

the type or namespace name 'directx' does not exist in the namespace 'microsoft'

 ̄綄美尐妖づ 提交于 2021-02-05 05:04:02
问题 I have been trying to include DirectX in C sharp project (Visual Studio 2010). I installed DirectX SDK and included the components as: using Microsoft.DirectX; using Microsoft.DirextX.Direct3D; When I try to compile, I get the error: the type or namespace name 'directx' does not exist in the namespace 'microsoft' Some blogs mentioned that I need to add 'reference' - Microsoft.DirectX under '.NET' tab. But I couldn't find it over there. Neither was any facility to add it to the tab. Any

DirectX 9 to 11 OpenSharedResource is leaking memory like crazy. Am I doing something wrong?

北城以北 提交于 2021-01-29 06:17:53
问题 I've been fighting a memory leak in my software, where the virtual address space of my application is slowly used up by shared memory. Based on the amount of memory leaked, it was very clearly in the form of texture objects. I've isolated the bug to the following code sample. I created a share-able DX9 texture object, I open it from a D3D11 device, and then I release it. In this sample, running on my NVIDIA GeForce 780 Ti on Windows 8.1, my 32-bit process very quickly runs out of VAS as these

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