0.9.8: func_packing.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

func_packing.hpp
Go to the documentation of this file.
1
12 #pragma once
13
14 #include "type_vec2.hpp"
15 #include "type_vec4.hpp"
16
17 namespace glm
18 {
21
33 GLM_FUNC_DECL uint packUnorm2x16(vec2 const & v);
34
46 GLM_FUNC_DECL uint packSnorm2x16(vec2 const & v);
47
59 GLM_FUNC_DECL uint packUnorm4x8(vec4 const & v);
60
72 GLM_FUNC_DECL uint packSnorm4x8(vec4 const & v);
73
85 GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p);
86
98 GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p);
99
111 GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p);
112
124 GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p);
125
134 GLM_FUNC_DECL double packDouble2x32(uvec2 const & v);
135
143 GLM_FUNC_DECL uvec2 unpackDouble2x32(double v);
144
153 GLM_FUNC_DECL uint packHalf2x16(vec2 const & v);
154
163 GLM_FUNC_DECL vec2 unpackHalf2x16(uint v);
164
166 }//namespace glm
167
168 #include "func_packing.inl"
glm::packUnorm4x8
GLM_FUNC_DECL uint packUnorm4x8(vec4 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::vec4
highp_vec4 vec4
4 components vector of floating-point numbers.
Definition: type_vec.hpp:466
glm::packDouble2x32
GLM_FUNC_DECL double packDouble2x32(uvec2 const &v)
Returns a double-precision value obtained by packing the components of v into a 64-bit value...
glm::packHalf2x16
GLM_FUNC_DECL uint packHalf2x16(vec2 const &v)
Returns an unsigned integer obtained by converting the components of a two-component floating-point v...
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
glm
Definition: _noise.hpp:11
glm::unpackSnorm4x8
GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
type_vec2.hpp
GLM Core
glm::unpackHalf2x16
GLM_FUNC_DECL vec2 unpackHalf2x16(uint v)
Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...
glm::unpackUnorm2x16
GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::packUnorm2x16
GLM_FUNC_DECL uint packUnorm2x16(vec2 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::packSnorm2x16
GLM_FUNC_DECL uint packSnorm2x16(vec2 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::unpackSnorm2x16
GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::unpackUnorm4x8
GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::uvec2
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
Definition: type_vec.hpp:537
type_vec4.hpp
GLM Core
glm::unpackDouble2x32
GLM_FUNC_DECL uvec2 unpackDouble2x32(double v)
Returns a two-component unsigned integer vector representation of v.
glm::packSnorm4x8
GLM_FUNC_DECL uint packSnorm4x8(vec4 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::vec2
highp_vec2 vec2
2 components vector of floating-point numbers.
Definition: type_vec.hpp:456