0.8.0 API documentation
transform.hpp
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "texture1d.hpp"
7 #include "texture1d_array.hpp"
8 #include "texture2d.hpp"
9 #include "texture2d_array.hpp"
10 #include "texture3d.hpp"
11 #include "texture_cube.hpp"
12 #include "texture_cube_array.hpp"
13 
14 namespace gli
15 {
16  template <typename vec_type>
17  struct transform_func
18  {
19  typedef vec_type(*type)(vec_type const & A, vec_type const & B);
20  };
21 
28  template <typename vec_type>
29  void transform(texture1d & Out, texture1d const & In0, texture1d const & In1, typename transform_func<vec_type>::type TexelFunc);
30 
37  template <typename vec_type>
38  void transform(texture1d_array & Out, texture1d_array const & In0, texture1d_array const & In1, typename transform_func<vec_type>::type TexelFunc);
39 
46  template <typename vec_type>
47  void transform(texture2d & Out, texture2d const & In0, texture2d const & In1, typename transform_func<vec_type>::type TexelFunc);
48 
55  template <typename vec_type>
56  void transform(texture2d_array & Out, texture2d_array const & In0, texture2d_array const & In1, typename transform_func<vec_type>::type TexelFunc);
57 
64  template <typename vec_type>
65  void transform(texture3d & Out, texture3d const & In0, texture3d const & In1, typename transform_func<vec_type>::type TexelFunc);
66 
73  template <typename vec_type>
74  void transform(texture_cube & Out, texture_cube const & In0, texture_cube const & In1, typename transform_func<vec_type>::type TexelFunc);
75 
82  template <typename vec_type>
83  void transform(texture_cube_array & Out, texture_cube_array const & In0, texture_cube_array const & In1, typename transform_func<vec_type>::type TexelFunc);
84 
85 }//namespace gli
86 
87 #include "./core/transform.inl"
Include to use 2d textures.
Namespace where all the classes and functions provided by GLI are exposed.
Definition: comparison.hpp:15
Include to use 1d array textures.
Include to use 3d textures.
Include to use 1d textures.
Include to use 2d array textures.
Include to use cube map array textures.
void transform(texture1d &Out, texture1d const &In0, texture1d const &In1, typename transform_func< vec_type >::type TexelFunc)
Compute per-texel operations using a user defined function.
Include to use cube map textures.