* @brief Load a 32-bit float texel from a data array. * * @param data The data pointer. * @param base_offset The index offset to the start of the pixel. */
| 78 | * @param base_offset The index offset to the start of the pixel. |
| 79 | */ |
| 80 | static vfloat4 load_texel_f32( |
| 81 | const void* data, |
| 82 | size_t base_offset |
| 83 | ) { |
| 84 | const float* data32 = static_cast<const float*>(data); |
| 85 | return vfloat4(data32 + base_offset); |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * @brief Dummy no-op swizzle function. |