11#include "../utility/utility.hpp"
12#include "../macros.hpp"
19[[
nodiscard]]
constexpr int8_t make_snorm_r8_value(
float rhs)
noexcept
38 explicit snorm_r8(
float rhs) noexcept : value(make_snorm_r8_value(rhs)) {}
40 snorm_r8 &operator=(
float rhs)
noexcept
42 value = make_snorm_r8_value(rhs);
46 explicit operator float()
const noexcept
48 return narrow_cast<float>(value) / 127.0f;
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
1 x int8_t pixel format.
Definition snorm_r8.hpp:28