 |
SceneViewRenderToGpuImage Method |
Renders the current scene view to the bitmap and saves the image data a GpuImage that is passed to the specified stagingGpuImageReady Action.
To render to a different size or different multi-sample or super-sampling count, create a new SceneView and call RenderToGpuImage there.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void RenderToGpuImage(
bool renderNewFrame = true,
bool preserveGpuImage = true,
StandardBitmapFormats format = StandardBitmapFormats.Undefined,
Action<GpuImage>? stagingGpuImageReady = null
)
Parameters
- renderNewFrame Boolean (Optional)
- renders a new frame before creating a bitmap (true by default)
- preserveGpuImage Boolean (Optional)
- when true then the GpuImage is preserved for the next call of RenderToBitmap. When false then the used GpuImage is disposed before returning from this method. (false by default).
- format StandardBitmapFormats (Optional)
- format of the rendered bitmap (Undefined by default - in this case the value of the SceneView.Format is used)
- stagingGpuImageReady ActionGpuImage (Optional)
- Action that will copy the data from the staging GpuImage
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.RenderToGpuImage(System.Boolean,System.Boolean,Ab4d.SharpEngine.Common.StandardBitmapFormats,System.Action{Ab4d.SharpEngine.Core.GpuImage})"]
See Also