| 631 | } |
| 632 | |
| 633 | EPixelType pixelType(EPixelFormat format) { |
| 634 | switch (format) { |
| 635 | case EPixelFormat::U8: |
| 636 | case EPixelFormat::U16: |
| 637 | case EPixelFormat::U32: return EPixelType::Uint; |
| 638 | case EPixelFormat::I8: |
| 639 | case EPixelFormat::I16: |
| 640 | case EPixelFormat::I32: return EPixelType::Int; |
| 641 | case EPixelFormat::F16: |
| 642 | case EPixelFormat::F32: return EPixelType::Float; |
| 643 | default: throw runtime_error{"Unknown pixel format."}; |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | std::string CompoundException::buildMessage(std::span<const std::exception_ptr> exceptions) { |
| 648 | ostringstream oss; |
nothing calls this directly
no outgoing calls
no test coverage detected