0.8.1 API documentation
Public Member Functions | List of all members
sampler1d< T, P > Class Template Reference

1d texture sampler More...

Inheritance diagram for sampler1d< T, P >:
sampler

Public Member Functions

void clear (texel_type const &Texel)
 Clear the sampler texture with a uniform texel.
 
void generate_mipmaps (filter Minification)
 Generate all the mipmaps of the sampler texture from the texture base level.
 
void generate_mipmaps (size_type BaseLevel, size_type MaxLevel, filter Minification)
 Generate the mipmaps of the sampler texture from the texture base level to the texture max level included.
 
texture_type const & operator() () const
 Access the sampler texture object.
 
texel_type texel_fetch (extent_type const &TexelCoord, size_type const &Level) const
 Fetch a texel from the sampler texture.
 
void texel_write (extent_type const &TexelCoord, size_type const &Level, texel_type const &Texel)
 Write a texel in the sampler texture.
 
texel_type texture_lod (normalized_type const &SampleCoord, level_type Level) const
 Sample the sampler texture at a specific level.
 

Detailed Description

template<typename T, precision P = defaultp>
class gli::sampler1d< T, P >

1d texture sampler

Template Parameters
TSampler can fetch, write and interpret any texture format but will expose and process the data through type T conversions.
PPrecision in term of ULPs

Definition at line 17 of file sampler1d.hpp.