Is it possible vsg viewer's TransferTask support partial update image? #743
-
Hi, I noticed that vsg viewer's TransferTask can help transfer images in the background.My current understanding is that TransferTask can only update the image as a whole,is it possible vsg viewer's TransferTask support partial update image? Thanks best wishes |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I have converted this questions to Discussion Q&A as this is the appropriate place for such discussions. TransferTask can only copy complete BufferInfo and ImageInfo but in the case of BufferInfo you can created your own BufferInfo that addresses a portion of the overall BufferInfo. You can't presently do the same for ImageInfo as they are backed by a very specific type of object on the GPU and would need more elaborate mechanism. One possible alternative would be to copy the data via BufferInfo and then copy this to the image, this would be too disimilar to the vsgdynamictexture_cs example does, where it reformats RGB data into RGBA that can be assigned to the vkImage. |
Beta Was this translation helpful? Give feedback.
-
Hi Robert, The following is my idea, which has not been verified: typedef struct VkBufferImageCopy { If this idea is feasible, can this function be implemented in TransferTask? Or I must implement this myself? Thanks. |
Beta Was this translation helpful? Give feedback.
I have converted this questions to Discussion Q&A as this is the appropriate place for such discussions.
TransferTask can only copy complete BufferInfo and ImageInfo but in the case of BufferInfo you can created your own BufferInfo that addresses a portion of the overall BufferInfo. You can't presently do the same for ImageInfo as they are backed by a very specific type of object on the GPU and would need more elaborate mechanism.
One possible alternative would be to copy the data via BufferInfo and then copy this to the image, this would be too disimilar to the vsgdynamictexture_cs example does, where it reformats RGB data into RGBA that can be assigned to the vkImage.