0.6.1
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"
size_t size_type
Definition: texture.hpp:38
genType textureLod(texture2D const &Texture, texture2D::texcoord_type const &Texcoord, texture2D::size_type const &Level)
genType texelFetch(texture2D const &Texture, texture2D::dim_type const &Texcoord, texture2D::size_type const &Level)
vec2 texcoord_type
Definition: texture2d.hpp:44
void texelWrite(texture2D &Texture, texture2D::dim_type const &Texcoord, texture2D::size_type const &Level, genType const &Color)
dim2_t dim_type
Definition: texture2d.hpp:43