0.8.0 API documentation
duplicate.hpp
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "image.hpp"
7 #include "texture1d.hpp"
8 #include "texture1d_array.hpp"
9 #include "texture2d.hpp"
10 #include "texture2d_array.hpp"
11 #include "texture3d.hpp"
12 #include "texture_cube.hpp"
13 #include "texture_cube_array.hpp"
14 
15 namespace gli
16 {
18  image duplicate(image const & Image);
19 
21  template <typename texType>
22  texture duplicate(texType const & Texture);
23 
26  template <typename texType>
27  texture duplicate(texType const & Texture, format Format);
28 
30  texture duplicate(
31  texture1d const & Texture,
32  texture1d::size_type BaseLevel, texture1d::size_type MaxLevel);
33 
35  texture duplicate(
36  texture1d_array const & Texture,
37  texture1d_array::size_type BaseLayer, texture1d_array::size_type MaxLayer,
38  texture1d_array::size_type BaseLevel, texture1d_array::size_type MaxLevel);
39 
41  texture duplicate(
42  texture2d const & Texture,
43  texture2d::size_type BaseLevel, texture2d::size_type MaxLevel);
44 
46  texture duplicate(
47  texture2d_array const & Texture,
48  texture2d_array::size_type BaseLayer, texture2d_array::size_type MaxLayer,
49  texture2d_array::size_type BaseLevel, texture2d_array::size_type MaxLevel);
50 
52  texture duplicate(
53  texture3d const & Texture,
54  texture3d::size_type BaseLevel, texture3d::size_type MaxLevel);
55 
57  texture duplicate(
58  texture_cube const & Texture,
59  texture_cube::size_type BaseFace, texture_cube::size_type MaxFace,
60  texture_cube::size_type BaseLevel, texture_cube::size_type MaxLevel);
61 
63  texture duplicate(
64  texture_cube_array const & Texture,
65  texture_cube_array::size_type BaseLayer, texture_cube_array::size_type MaxLayer,
66  texture_cube_array::size_type BaseFace, texture_cube_array::size_type MaxFace,
67  texture_cube_array::size_type BaseLevel, texture_cube_array::size_type MaxLevel);
68 }//namespace gli
69 
70 #include "./core/duplicate.inl"
Include to use 2d textures.
Namespace where all the classes and functions provided by GLI are exposed.
Definition: comparison.hpp:15
Include to use 1d array textures.
Include to use 3d textures.
image duplicate(image const &Image)
Duplicate an image and create a new image with a new storage allocation.
format
Texture data format.
Definition: format.hpp:12
Include to use 1d textures.
Include to use images, a representation of a single texture level.
Include to use 2d array textures.
Include to use cube map array textures.
Include to use cube map textures.