ConfigValueHost configures host staging buffer from memory buffer for val-owned image
(buff *MemBuff, buffPtr unsafe.Pointer, offset int)
| 874 | |
| 875 | // ConfigValueHost configures host staging buffer from memory buffer for val-owned image |
| 876 | func (im *Image) ConfigValueHost(buff *MemBuff, buffPtr unsafe.Pointer, offset int) { |
| 877 | if im.IsHostOwner() { |
| 878 | return |
| 879 | } |
| 880 | imsz := im.Format.TotalByteSize() |
| 881 | im.Host.Buff = buff.Host |
| 882 | im.Host.Mem = vk.NullDeviceMemory |
| 883 | im.Host.Size = imsz |
| 884 | im.Host.Ptr = unsafe.Pointer(uintptr(buffPtr) + uintptr(offset)) |
| 885 | im.Host.Offset = offset |
| 886 | im.SetFlag(true, ImageIsValue, ImageHostActive) |
| 887 | } |
| 888 | |
| 889 | // CopyRec returns info for this Image for the BufferImageCopy operations |
| 890 | func (im *Image) CopyRec() vk.BufferImageCopy { |
no test coverage detected