* @brief Load an 8-bit UNORM texel from a data array. * * @param data The data pointer. * @param base_offset The index offset to the start of the pixel. */
| 46 | * @param base_offset The index offset to the start of the pixel. |
| 47 | */ |
| 48 | static vfloat4 load_texel_u8( |
| 49 | const void* data, |
| 50 | size_t base_offset |
| 51 | ) { |
| 52 | const uint8_t* data8 = static_cast<const uint8_t*>(data); |
| 53 | return int_to_float(vint4(data8 + base_offset)) / 255.0f; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * @brief Load a 16-bit fp16 texel from a data array. |
nothing calls this directly
no test coverage detected