| 542 | } |
| 543 | |
| 544 | static void ValidateSourceImageDesc(const SrcImageDescriptor& imageDesc) |
| 545 | { |
| 546 | LLGL_ASSERT_PTR(imageDesc.data); |
| 547 | if (imageDesc.dataSize % GetMemoryFootprint(imageDesc.format, imageDesc.dataType, 1) != 0) |
| 548 | throw std::invalid_argument("source image data size is not a multiple of the source data type size"); |
| 549 | } |
| 550 | |
| 551 | static void ValidateDestinationImageDesc(const DstImageDescriptor& imageDesc) |
| 552 | { |
no test coverage detected