Blender V5.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
10
11#include <cstddef>
12#include <cstdint>
13
14namespace blender::math {
15
31
36
45
50
51void float_to_half_array(const float *src, uint16_t *dst, size_t length);
53 const float *src, uint16_t *dst, size_t length, float min_value, float max_value);
54void float_to_half_make_finite_array(const float *src, uint16_t *dst, size_t length);
55void half_to_float_array(const uint16_t *src, float *dst, size_t length);
56
57} // namespace blender::math
void float_to_half_array(const float *src, uint16_t *dst, size_t length)
Definition math_half.cc:256
uint16_t float_to_half(float v)
Definition math_half.cc:32
T length(const VecBase< T, Size > &a)
void float_to_half_clamp_array(const float *src, uint16_t *dst, size_t length, float min_value, float max_value)
Definition math_half.cc:292
void half_to_float_array(const uint16_t *src, float *dst, size_t length)
Definition math_half.cc:449
void float_to_half_make_finite_array(const float *src, uint16_t *dst, size_t length)
Definition math_half.cc:355
float half_to_float(uint16_t v)
Definition math_half.cc:113
uint16_t float_to_half_make_finite(float v)
Definition math_half.cc:96
ATTR_WARN_UNUSED_RESULT const BMVert * v
unsigned short uint16_t
Definition BKE_text.h:80