Claudio6969 / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 1 forks source link

IDirect3DResource9.Set/GetPrivateData missing #880

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i'd like to see IDirect3DResource9.Set/GetPrivateData exposed on managed 
resources. 
i'd like to use it to transport arbitrary data between textures created in the 
managed-slimdx-world that are being used in the unmanaged-world of my main 
application. for this the .Tag option on slimdx resources is not usable.

see: 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205886%28v=vs.85%29.as
px

it is still missing with slimdx January 2012

Original issue reported on code.google.com by joregdje...@googlemail.com on 8 Aug 2012 at 7:02

GoogleCodeExporter commented 8 years ago
Sounds reasonable, though we'd probably have to enforce that it's a POD struct, 
since I don't see how you'd marshal an object reference from unmanaged code.

Original comment by Mike.Popoloski on 9 Aug 2012 at 6:17

GoogleCodeExporter commented 8 years ago
true, with arbitrary data i actually meant primitives only. in my case the int 
representing the shared handle.

Original comment by joregdje...@googlemail.com on 14 Aug 2012 at 2:25

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2209.

Original comment by Mike.Popoloski on 16 Sep 2012 at 4:15