| 78 | /* ----- Storage ----- */ |
| 79 | |
| 80 | void Image::Convert(const ImageFormat format, const DataType dataType, std::size_t threadCount) |
| 81 | { |
| 82 | /* Convert image buffer (if necessary) */ |
| 83 | if (data_) |
| 84 | { |
| 85 | if (auto convertedData = ConvertImageBuffer(GetSrcDesc(), format, dataType, threadCount)) |
| 86 | data_ = std::move(convertedData); |
| 87 | } |
| 88 | |
| 89 | /* Store new attributes */ |
| 90 | format_ = format; |
| 91 | dataType_ = dataType; |
| 92 | } |
| 93 | |
| 94 | void Image::Resize(const Extent3D& extent) |
| 95 | { |
no test coverage detected