Click or drag to resize
Ab4d.SharpEngine logo

SceneViewRegisterStagingGpuImageReadyCallback Method

RegisterStagingGpuImageReadyCallback can be called to copy the rendered image to a staging GpuImage and call the provided action when the staging buffer is ready to be copied to the main memory. To get the GpuBuffer as a staging buffer, use the RegisterStagingGpuBufferReadyCallback(ActionGpuBuffer, Int32, Int32). To unregister call UnregisterStagingGpuImageReadyCallback(ActionGpuImage) method.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void RegisterStagingGpuImageReadyCallback(
	Action<GpuImage> onStagingGpuImageReady
)

Parameters

onStagingGpuImageReady  ActionGpuImage
Action that takes GpuImage and is called when the rendering is finished and the staging buffer is ready
See Also