Click or drag to resize
Ab4d.SharpEngine logo

GpuImageCopyDataToImageAsync(RawImageData, Boolean) 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.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public Task<GpuImage> CopyDataToImageAsync(
	RawImageData imageData,
	bool transitionImageToShaderReadOnlyOptimalLayout
)

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.

Return Value

TaskGpuImage

[Missing <returns> documentation for "M:Ab4d.SharpEngine.Core.GpuImage.CopyDataToImageAsync(Ab4d.SharpEngine.Common.RawImageData,System.Boolean)"]

Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Core.GpuImage.CopyDataToImageAsync(Ab4d.SharpEngine.Common.RawImageData,System.Boolean)"]

See Also