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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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