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