MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GetFlattenedImageBufferPosEnd

Function GetFlattenedImageBufferPosEnd

deps/LLGL/sources/Core/ImageFlags.cpp:740–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740static 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
758LLGL_EXPORT void CopyImageBufferRegion(
759 const DstImageDescriptor& dstImageDesc,

Callers 1

CopyImageBufferRegionFunction · 0.85

Calls 1

Tested by

no test coverage detected