master
ブランチ master
VulkanExample / dep / include / glm / gtx / color_encoding.hpp
1.7 KB、52行 生 Blame 履歴
1/// @ref gtx_color_encoding
2/// @file glm/gtx/color_encoding.hpp
3///
4/// @see core (dependence)
5/// @see gtx_color_encoding (dependence)
6///
7/// @defgroup gtx_color_encoding GLM_GTX_color_encoding
8/// @ingroup gtx
9///
10/// Include <glm/gtx/color_encoding.hpp> to use the features of this extension.
11///
12/// @brief Allow to perform bit operations on integer values
13
14#pragma once
15
16// Dependencies
17#include "../detail/setup.hpp"
18#include "../detail/qualifier.hpp"
19#include "../vec3.hpp"
20#include <limits>
21
22#ifndef GLM_ENABLE_EXPERIMENTAL
23# error "GLM: GLM_GTC_color_encoding is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
24#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
25# pragma message("GLM: GLM_GTC_color_encoding extension included")
26#endif
27
28namespace glm
29{
30 /// @addtogroup gtx_color_encoding
31 /// @{
32
33 /// Convert a linear sRGB color to D65 YUV.
34 template<typename T, qualifier Q>
35 GLM_FUNC_DECL vec<3, T, Q> convertLinearSRGBToD65XYZ(vec<3, T, Q> const& ColorLinearSRGB);
36
37 /// Convert a linear sRGB color to D50 YUV.
38 template<typename T, qualifier Q>
39 GLM_FUNC_DECL vec<3, T, Q> convertLinearSRGBToD50XYZ(vec<3, T, Q> const& ColorLinearSRGB);
40
41 /// Convert a D65 YUV color to linear sRGB.
42 template<typename T, qualifier Q>
43 GLM_FUNC_DECL vec<3, T, Q> convertD65XYZToLinearSRGB(vec<3, T, Q> const& ColorD65XYZ);
44
45 /// Convert a D65 YUV color to D50 YUV.
46 template<typename T, qualifier Q>
47 GLM_FUNC_DECL vec<3, T, Q> convertD65XYZToD50XYZ(vec<3, T, Q> const& ColorD65XYZ);
48
49 /// @}
50} //namespace glm
51
52#include "color_encoding.inl"