sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

[Direct3D11] ReadFromSubresource wrong parameters? #980

Open dosh1974 opened 6 years ago

dosh1974 commented 6 years ago

Parameter dstDataRef in SharpDX.Direct3D11.Device3.ReadFromSubresource should be an in paramater, not an out, right?

I think it's wrongly annotated Out in the source (d3d11_3.h):

https://msdn.microsoft.com/en-us/library/windows/desktop/dn912873(v=vs.85).aspx

Someone posted a fix for D3d12: https://github.com/sharpdx/SharpDX/commit/bf29cfd0494f509994b5ad0de9e0562dfbfe112a

xoofx commented 6 years ago

likely, PR welcome

adiba commented 5 years ago

This can be closed, I believe.