| 506 | } |
| 507 | |
| 508 | std::size_t Image::GetDataPtrOffset(const Offset3D& offset) const |
| 509 | { |
| 510 | const auto bpp = static_cast<std::size_t>(GetBytesPerPixel()); |
| 511 | const auto x = static_cast<std::size_t>(offset.x); |
| 512 | const auto y = static_cast<std::size_t>(offset.y); |
| 513 | const auto z = static_cast<std::size_t>(offset.z); |
| 514 | const auto w = static_cast<std::size_t>(GetExtent().width); |
| 515 | const auto h = static_cast<std::size_t>(GetExtent().height); |
| 516 | return (bpp * (x + (y + z * h) * w)); |
| 517 | } |
| 518 | |
| 519 | void Image::ClampRegion(Offset3D& offset, Extent3D& extent) const |
| 520 | { |
nothing calls this directly
no test coverage detected