Click or drag to resize
Ab4d.SharpEngine logo

SceneViewRegisterStagingGpuBufferReadyCallback Method

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

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void RegisterStagingGpuBufferReadyCallback(
	Action<GpuBuffer, int, int> onStagingGpuBufferReady
)

Parameters

onStagingGpuBufferReady  ActionGpuBuffer, Int32, Int32
Action that takes GpuBuffer, image width and image height and is called when the rendering is finished and the staging buffer is ready
See Also