| 738 | } |
| 739 | |
| 740 | static std::size_t GetFlattenedImageBufferPosEnd( |
| 741 | const Offset3D& offset, |
| 742 | const Extent3D& extent, |
| 743 | std::uint32_t rows, |
| 744 | std::uint32_t slices, |
| 745 | std::uint32_t bpp) |
| 746 | { |
| 747 | /* Subtract 1 from extent dimensions and add <bpp> again to get the excluding iterator end */ |
| 748 | return GetFlattenedImageBufferPos( |
| 749 | static_cast<std::uint32_t>(offset.x) + extent.width - 1u, |
| 750 | static_cast<std::uint32_t>(offset.y) + extent.height - 1u, |
| 751 | static_cast<std::uint32_t>(offset.z) + extent.depth - 1u, |
| 752 | rows, |
| 753 | slices, |
| 754 | bpp |
| 755 | ) + bpp; |
| 756 | } |
| 757 | |
| 758 | LLGL_EXPORT void CopyImageBufferRegion( |
| 759 | const DstImageDescriptor& dstImageDesc, |
no test coverage detected