0.8.0 API documentation
Namespaces | Functions
view.hpp File Reference

Include create views of textures, either to isolate a subset or to reinterpret data without memory copy. More...

Go to the source code of this file.

Namespaces

 gli
 Namespace where all the classes and functions provided by GLI are exposed.
 

Functions

image view (image const &Image)
 Create an image view of an existing image, sharing the same memory storage.
 
texture view (texture const &Texture)
 Create a texture view of an existing texture, sharing the same memory storage.
 
texture view (texture const &Texture, texture::size_type BaseLayer, texture::size_type MaxLayer, texture::size_type BaseFace, texture::size_type MaxFace, texture::size_type BaseLevel, texture::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of layers, levels and faces.
 
template<typename texType >
texture view (texType const &Texture)
 Create a texture view of an existing texture, sharing the same memory storage.
 
template<typename texType >
texture view (texType const &Texture, format Format)
 Create a texture view of an existing texture, sharing the same memory storage but a different format. More...
 
texture view (texture1d const &Texture, texture1d::size_type BaseLevel, texture1d::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels.
 
texture view (texture1d_array const &Texture, texture1d_array::size_type BaseLayer, texture1d_array::size_type MaxLayer, texture1d_array::size_type BaseLevel, texture1d_array::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels and layers.
 
texture view (texture2d const &Texture, texture2d::size_type BaseLevel, texture2d::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels.
 
texture view (texture2d_array const &Texture, texture2d_array::size_type BaseLayer, texture2d_array::size_type MaxLayer, texture2d_array::size_type BaseLevel, texture2d_array::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels and layers.
 
texture view (texture3d const &Texture, texture3d::size_type BaseLevel, texture3d::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels.
 
texture view (texture_cube const &Texture, texture_cube::size_type BaseFace, texture_cube::size_type MaxFace, texture_cube::size_type BaseLevel, texture_cube::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of levels and faces.
 
texture view (texture_cube_array const &Texture, texture_cube_array::size_type BaseLayer, texture_cube_array::size_type MaxLayer, texture_cube_array::size_type BaseFace, texture_cube_array::size_type MaxFace, texture_cube_array::size_type BaseLevel, texture_cube_array::size_type MaxLevel)
 Create a texture view of an existing texture, sharing the same memory storage but giving access only to a subset of layers, levels and faces.
 

Detailed Description

Include create views of textures, either to isolate a subset or to reinterpret data without memory copy.

Definition in file view.hpp.