Click or drag to resize
Ab4d.SharpEngine logo

GpuImage.CopyDataToImage(Byte[], Boolean) Method

Copies the data from the specified byte array to this image. When transitionImageToShaderReadOnlyOptimalLayout is 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.

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public void CopyDataToImage(
	byte[] data,
	bool transitionImageToShaderReadOnlyOptimalLayout
)

Parameters

data  Byte[]
byte array
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.
See Also