GLI  0.5.0
fetch.hpp
Go to the documentation of this file.
1 
29 #ifndef GLI_GTX_FETCH_INCLUDED
30 #define GLI_GTX_FETCH_INCLUDED
31 
32 #include "../gli.hpp"
33 
34 namespace gli
35 {
36  template <typename genType>
37  genType texelFetch(
38  texture2D const & Texture,
39  texture2D::dimensions_type const & Texcoord,
40  texture2D::size_type const & Level);
41 
42  template <typename genType>
43  genType textureLod(
44  texture2D const & Texture,
45  texture2D::texcoord_type const & Texcoord,
46  texture2D::size_type const & Level);
47 
48  template <typename genType>
49  void texelWrite(
50  texture2D & Texture,
51  texture2D::dimensions_type const & Texcoord,
52  texture2D::size_type const & Level,
53  genType const & Color);
54 
55 }//namespace gli
56 
57 #include "fetch.inl"
58 
59 #endif//GLI_GTX_FETCH_INCLUDED
void texelWrite(texture2D &Texture, texture2D::dimensions_type const &Texcoord, texture2D::size_type const &Level, genType const &Color)
storage::dimensions2_type dimensions_type
Definition: texture2d.hpp:44
storage::texcoord2_type texcoord_type
Definition: texture2d.hpp:45
storage::size_type size_type
Definition: texture2d.hpp:46
genType textureLod(texture2D const &Texture, texture2D::texcoord_type const &Texcoord, texture2D::size_type const &Level)
genType texelFetch(texture2D const &Texture, texture2D::dimensions_type const &Texcoord, texture2D::size_type const &Level)