Replies: 5 comments
-
|
Hi, thank you for the input. I think I looked at the wrong file (WinApi.DirectX.D3D12SDKLayers.pas) The MfPack units are always translated from the latest Windows SDK. If you want more info about the MfPack translations, I suggest to read the MfPack wiki Regards. Tony. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Tony, sorry, but I disagree. DirectX11 and DirectX12 are both the latest APIs. They just use different technologies. I have created a DirectX11 device (ID3D11Device), but I cannot use it to retrieve an ID3D12InfoQueue. Only an ID3D11InfoQueue is available.
Therefore, this code does not work:
correct is... I have currently created my own WinApi.DirectX.D3D11SDKLayers unit and am able to work well with it. If MfPack aspires to be a good library for MMF + DirectX, then we should include the interface. Based on my research, I would say that MfPack is currently the only complete and up-to-date API header library for Delphi. That's why I would like to support the project a little. I hope you don't find my code suggestions a burden... Best regards |
Beta Was this translation helpful? Give feedback.
-
|
Hi, We allready added the WinApi.DirectX.D3D11SDKLayers unit here (see my earlier reply) on GitHub, if you check that one out, and you find a bug in this code, please let me know. As far as I can see the bug is in the Delphi (embarcadero) build. In WinApi.DirectX.D3D11SDKLayers.pas this is not the case. By the way, you can't query a D3D12 interface or record from D3D11 when created in D3D11. Because D3D12 is from a much later period. Microsoft did "repair" this in WinApi.DirectX.D3D11on12.pas by adding function D3D11On12CreateDevice. But I'm not sure if the debug api is supporting it and also don't know how you created your D3D11 device because that's essential, if your code supports the benefits of D3D12 or not.. What I recommend is, you check your code against the MfPack WinApi.DirectX.D3D11SDKLayers.pas and do a pull request with your code. If your code is equal to ours, no issue, we add your contribution anyway in the header of the next comming MfPack version. One final note: Regards. Tony. |
Beta Was this translation helpful? Give feedback.
-
|
Hello Toni, Thank you for the new unit WinApi.DirectX.D3D11SdkLayers.pas. You're quite active. There are changes almost every day. I have to make sure I keep up 👍 Thanks also for mentioning me as a contributor. If there's anything new, I'll let you know. We can close the discussion here for now. Best regards from Berlin |
Beta Was this translation helpful? Give feedback.
-
|
OK, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I suggest that we add a unit WinApi.DirectX.D3D11SDKLayers.pas to the project, because the interface ID3D11InfoQueue with GUID {6543DBB6-1B48-42F5-AB82-E97EC74326F6} is missing.
This interface is essential for reading the DEBUG messages from the device.
The Delphi unit ‘...\source\rtl\win\Winapi.D3D11sdklayers.pas’ contains the interface, but the GetMessage function is defined incorrectly here, so it cannot be used.
I am not sure how MfPack obtains the interfaces and what rules exist for adding a unit. Therefore, I am requesting assistance from the maintainers.
Thank you very much.
kxMaxx
Beta Was this translation helpful? Give feedback.
All reactions