[Direct3D12][UWP] #667
Comments
@xoofx What can be the issue from your point of view? Maybe I can the submit PR |
Well the marshaler for this method is a bit hacky and seems not supported well by .NET native tool. Haven't dig into it... |
Oh thank you for your detailed explanation. |
Hello! I work on the .NET Native runtime and compiler team. When you do get time to investigate this a bit please don't hesitate to shoot us a mail at dotnetnative@microsoft.com. We'd be happy to help leverage our expertise so that sharpdx is in great shape for both our customers! |
Any news on this issue - I just finished porting UWP + Xaml + DirectX 12 samples to C# and cant get my app running on xbox one due to this issue... |
Hi, |
@jxl98c Can you send a mail to us .NET folks? It's a bit silly but it is the fastest way to get these things prioritized on our side. Squeaky wheels and all that. :-) |
Curiosity got the better of me. Here's the error I get when compiling with the latest tools: I'll see what more information I can dig up but sending a mail really does grease the wheels for us. |
Thanks @MattWhilden for bringing this up! I'm also from .NET native team and I've just took a quick look. It appears that this method is doing a calli:
While RootSignatureDescription is an auto layout class: .class public auto ansi sealed beforefieldinit $81_SharpDX.Direct3D12.RootSignatureDescription This means that CLR would fallback to use COM interop and marshal this one as a IUnknown, and the problem is that interop marshaling through calli instruction is not yet implemented in .NET native. However, it's not clear to me if this is intentional - I would expect SharpDX to do its own COM marshaling (as far as I can tell - but I could also be terribly wrong). @xoofx You mentioned that this method is "a bit hacky". Can you share more details on what the method is trying to do? |
Thanks @yizhang82 and @MattWhilden ! Good catch, the method There is a code to serialize it in So as I said above, I'm no longer able to give spare time to SharpDX, so I would appreciate someone that needs this fix to help on this, PR are welcome. Thanks! |
@xoofx I spent some time yesterday on a potential PR (#773) and I haven't got a chance to test it yet (appreciate if you can share some ideas on how to test this. Presumably I just need to find a way to test this API without having to create a game :) ). Can you take a quick look and see if it is on the right direction? |
@zerppa The PR just got merged into master last night. Feel free to pick up the latest version of SharpDX and give it a try. I've confirmed that picking up this version fixes the problem and .NET native compiler is happy now. |
The .NET native tool chain for UWP apps cannot handle D3D12, it seems.
It does not make a difference whether x86 or x64. I have no problems with D3D11. I do have the latest UWP tools 1.1.1 update installed.
The text was updated successfully, but these errors were encountered: