Added more detailed explenation to docs
* Change documentation.
Changed the documentation to explain how the data layout of an image is changed as it is copied from image to buffer.
* Fixed the trailing whitespace
@@ -990,7 +990,11 @@ impl<P> AutoCommandBufferBuilder<P> {
}
}
- /// Adds a command that copies from an image to a buffer.
+ /*
+ Adds a command that copies from an image to a buffer.
+ The data layout of the image on the gpu is opaque, as in, it is non of our business how the gpu stores the image.
+ This does not matter since the act of copying the image into a buffer converts it to linear form.
+ */
pub fn copy_image_to_buffer<S, D, Px>(
self,
source: S,
