| 556 | } |
| 557 | |
| 558 | static void ValidateImageConversionParams( |
| 559 | const SrcImageDescriptor& srcImageDesc, |
| 560 | ImageFormat dstFormat, |
| 561 | DataType dstDataType) |
| 562 | { |
| 563 | if (IsCompressedFormat(srcImageDesc.format) || IsCompressedFormat(dstFormat)) |
| 564 | throw std::invalid_argument("cannot convert compressed image formats"); |
| 565 | if (IsDepthStencilFormat(srcImageDesc.format) || IsDepthStencilFormat(dstFormat)) |
| 566 | throw std::invalid_argument("cannot convert depth-stencil image formats"); |
| 567 | } |
| 568 | |
| 569 | |
| 570 | /* ----- Public functions ----- */ |
no test coverage detected