Click or drag to resize
Ab4d.SharpEngine logo

GpuImageCopyDataToImage Method

Overload List
 NameDescription
Public methodCopyDataToImage(Byte) Copies the data from the specified byte array to this image. The layout of the image is preserved. To set the image layout to ShaderReadOnlyOptimal or TransferSrcOptimal, call CopyDataToImage(Byte, Boolean) and set the transitionImageToShaderReadOnlyOptimalLayout parameter accordingly.
Public methodCopyDataToImage(Byte, Boolean) 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.
Public methodCopyDataToImage(RawImageData, Boolean, ActionGpuImage) 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.
Public methodCopyDataToImage(Byte, ImageLayout, AccessFlags, PipelineStageFlags) Copies the data from the specified byte array to this image and set the layout of the image to the specified values.
Public methodCopyDataToImage(RawImageData, ImageLayout, AccessFlags, PipelineStageFlags, ActionGpuImage) Copies the data from the specified RawImageData to this image in the background thread and set the layout of the image to the specified values. After the data is copied, the dataCopiedCallback is called with this GpuImage as a parameter.
Public methodCopyDataToImage(CommandBuffer, GpuBuffer, Byte, ImageLayout, AccessFlags, PipelineStageFlags, UInt32, UInt32) Copies the data from the specified byte array to this image and set the layout of the image to the specified values.
Top
See Also