Blender V4.3
BLI_math_half.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include <cstddef>
12#include <cstdint>
13
14namespace blender::math {
15
36
41
42void float_to_half_array(const float *src, uint16_t *dst, size_t length);
43void half_to_float_array(const uint16_t *src, float *dst, size_t length);
44
45} // namespace blender::math
ATTR_WARN_UNUSED_RESULT const BMVert * v
void float_to_half_array(const float *src, uint16_t *dst, size_t length)
Definition math_half.cc:221
uint16_t float_to_half(float v)
Definition math_half.cc:27
void half_to_float_array(const uint16_t *src, float *dst, size_t length)
Definition math_half.cc:257
float half_to_float(uint16_t v)
Definition math_half.cc:91
unsigned short uint16_t
Definition stdint.h:79