master
ブランチ master
VulkanExample / dep / include / glm / gtx / texture.hpp
1.3 KB、44行 生 Blame 履歴
1/// @ref gtx_texture
2/// @file glm/gtx/texture.hpp
3///
4/// @see core (dependence)
5///
6/// @defgroup gtx_texture GLM_GTX_texture
7/// @ingroup gtx
8///
9/// Include <glm/gtx/texture.hpp> to use the features of this extension.
10///
11/// Wrapping mode of texture coordinates.
12
13#pragma once
14
15// Dependency:
16#include "../glm.hpp"
17#include "../gtc/integer.hpp"
18#include "../gtx/component_wise.hpp"
19
20#ifndef GLM_ENABLE_EXPERIMENTAL
21# error "GLM: GLM_GTX_texture 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."
22#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_texture extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_texture
29 /// @{
30
31 /// Compute the number of mipmaps levels necessary to create a mipmap complete texture
32 ///
33 /// @param Extent Extent of the texture base level mipmap
34 /// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
35 /// @tparam T Floating-point or signed integer scalar types
36 /// @tparam Q Value from qualifier enum
37 template <length_t L, typename T, qualifier Q>
38 T levels(vec<L, T, Q> const& Extent);
39
40 /// @}
41}// namespace glm
42
43#include "texture.inl"
44