CopyImageRec returns info for this Image for the ImageCopy operations
()
| 904 | |
| 905 | // CopyImageRec returns info for this Image for the ImageCopy operations |
| 906 | func (im *Image) CopyImageRec() vk.ImageCopy { |
| 907 | w, h := im.Format.Size32() |
| 908 | reg := vk.ImageCopy{} |
| 909 | reg.SrcSubresource.AspectMask = vk.ImageAspectFlags(vk.ImageAspectColorBit) |
| 910 | reg.SrcSubresource.LayerCount = uint32(im.Format.Layers) |
| 911 | reg.DstSubresource.AspectMask = vk.ImageAspectFlags(vk.ImageAspectColorBit) |
| 912 | reg.DstSubresource.LayerCount = uint32(im.Format.Layers) |
| 913 | reg.Extent.Width = w |
| 914 | reg.Extent.Height = h |
| 915 | reg.Extent.Depth = 1 |
| 916 | return reg |
| 917 | } |
| 918 | |
| 919 | ///////////////////////////////////////////////////////////////////// |
| 920 | // Transition -- prepare device images for different roles |
no test coverage detected