MCPcopy Create free account
hub / github.com/RenderKit/ospray / postProcess

Method postProcess

modules/mpi/ospray/fb/DistributedFrameBuffer.cpp:916–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916devicert::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

Callers 3

renderFrameMethod · 0.45
renderFrameMethod · 0.45
renderFrameReplicatedMethod · 0.45

Calls 1

copyToDeviceMethod · 0.80

Tested by

no test coverage detected