deepavs said:Ya..i just want to know whether any resource sharing in directx...any useful links plzzzz
So basically, you're after the equivalent of an operating system's shared library/ dll for textures?deepavs said:Hi,
I have to share texture between applications. Here i create a texture using GetSurfaceLevel() and SetRenderTarget() with my drawings. And i have to use this texture in another application. Is this possible?
Genghis Presley said:Microsoft did take this need into account with DX9, including HANDLE* pSharedHandle as a parameter in the likes of CreateTexture. However this parameter has always been documented as 'Reserved. Set this parameter to NULL.'.
GP.
Yes. I was just searching for somewhere MS had spoken about it publically so that I could comment. According to the presentation given by Rudolph Balaz at PDC (available at http://msdn.microsoft.com/directx/) the resources must be created in system memory to be shareable which reduces the utility somewhat.Demirug said:It will work with DX9.0L as there this parameter is not longer "Reserved".
Genghis Presley said:Yes. I was just searching for somewhere MS had spoken about it publically so that I could comment. According to the presentation given by Rudolph Balaz at PDC (available at http://msdn.microsoft.com/directx/) the resources must be created in system memory to be shareable which reduces the utility somewhat.
GP.
Yes, you're right. I should remember to double check any posts I make once the Friday afternoon malaise has set in.Demirug said:A shared resource must be created in the defaul pool.
You refer to the second use case for the pSharedHandle parameter. In the case of system memory resource you can use it to give D3D a block of memory you have already allocated.