| 106 | } |
| 107 | |
| 108 | static bool isConvertibleToRGBA32Float(ResourceFormat format) |
| 109 | { |
| 110 | FormatType type = getFormatType(format); |
| 111 | bool isHalfFormat = (type == FormatType::Float && getNumChannelBits(format, 0) == 16); |
| 112 | bool isLargeIntFormat = ((type == FormatType::Uint || type == FormatType::Sint) && getNumChannelBits(format, 0) >= 16); |
| 113 | return isHalfFormat || isLargeIntFormat; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Converts half float image to RGBA float image. |
no test coverage detected