 |
GpuImageCopyDataToImage(RawImageData, Boolean, ActionGpuImage) Method |
Copies the data from the specified RawImageData to this image in the background thread.
When transitionImageToShaderReadOnlyOptimalLayout is true, the image layout is transitioned to ShaderReadOnlyOptimal; when false the image layout is set to TransferSrcOptimal.
After the data is copied, the dataCopiedCallback is called with this GpuImage as a parameter.
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void CopyDataToImage(
RawImageData imageData,
bool transitionImageToShaderReadOnlyOptimalLayout,
Action<GpuImage> dataCopiedCallback
)
Parameters
- imageData RawImageData
- RawImageData that will be copied to this GpuImage
- transitionImageToShaderReadOnlyOptimalLayout Boolean
- when true, the image layout is transitioned to ShaderReadOnlyOptimal; when false the image layout is set to TransferSrcOptimal. To preserve the image layout, call CopyDataToImage without transitionImageToShaderReadOnlyOptimalLayout parameter.
- dataCopiedCallback ActionGpuImage
- callback Action that called after the data is copied. This GpuImage is passed as a parameter.
See Also