Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - PdGetDevices() and PdSetTagetDevice(): can't get what to do: Page 1 of 11 (11 Items)
   
PdGetDevices() and PdSetTagetDevice(): can't get what to do  
PdGetDevices() returns array of rids, it's ok with this function. Clear and understandable.

a) PdSetTargetDevice() requires DC, and documentation mentions, that I can pass PdOffscreenContext_t to it, so I need to
 create it.

b) PdCreateOffscreenContext() and PdCreateOffscreenContextGF() documentation mentions, that before offscreen context 
creation I must target this function to the specific device, go to step a).

This looks a bit of recursive for me.

What to do if I have two different video cards which are handled by Photon ? As far as I understand, PdGetDevices() 
returns two rids in array. But what to do next ? How to target PdCreateOffscreenContext() or 
PdCreateOffscreenContextGF() to specific video driver, for right memory allocation. I can imaging what would be if 
memory was allocated by one driver and then was passed it to another driver :-/