| 914 | } |
| 915 | |
| 916 | devicert::AsyncEvent DFB::postProcess() |
| 917 | { |
| 918 | devicert::AsyncEvent event; |
| 919 | if (localFBonMaster) { |
| 920 | // FrameOps are run on the device, but the DFB receives the final image |
| 921 | // data over MPI into host-memory, and returns host-memory pointers |
| 922 | // directly. So, we need to copy the host data to the device, run the frame |
| 923 | // ops. If we can receive with MPI directly into device |
| 924 | // memory we can drop this first copy step. When running on the CPU device, |
| 925 | // these copies will become no-ops. |
| 926 | if (localFBonMaster->colorBuffer) { |
| 927 | localFBonMaster->colorBuffer->copyToDevice(); |
| 928 | } |
| 929 | if (localFBonMaster->depthBuffer) { |
| 930 | localFBonMaster->depthBuffer->copyToDevice(); |
| 931 | } |
| 932 | if (localFBonMaster->normalBuffer) { |
| 933 | localFBonMaster->normalBuffer->copyToDevice(); |
| 934 | } |
| 935 | if (localFBonMaster->albedoBuffer) { |
| 936 | localFBonMaster->albedoBuffer->copyToDevice(); |
| 937 | } |
| 938 | event = localFBonMaster->postProcess(); |
| 939 | } |
| 940 | return event; |
| 941 | } |
| 942 | |
| 943 | } // namespace ospray |
no test coverage detected