1 /// @brief Helper functions to create generic texture
2 /// @file gli/make_texture.hpp
3 
4 #pragma once
5 
6 namespace gli
7 {
8 	// Helper function to create a 1d texture with a specific number of levels
9 	gli::texture make_texture1d(format Format, extent1d const& Extent, size_t Levels);
10 
11 	// Helper function to create a 1d texture with a complete mipmap chain
12 	gli::texture make_texture1d(format Format, extent1d const& Extent);
13 
14 	// Helper function to create a 1d array texture with a specific number of levels
15 	gli::texture make_texture1d_array(format Format, extent1d const& Extent, size_t Layers, size_t Levels);
16 
17 	// Helper function to create a 1d array texture with a complete mipmap chain
18 	gli::texture make_texture1d_array(format Format, extent1d const& Extent, size_t Layers);
19 
20 	// Helper function to create a 2d texture with a specific number of levels
21 	gli::texture make_texture2d(format Format, extent2d const& Extent, size_t Levels);
22 
23 	// Helper function to create a 2d texture with a complete mipmap chain
24 	gli::texture make_texture2d(format Format, extent2d const& Extent);
25 
26 	// Helper function to create a 2d array texture with a specific number of levels
27 	gli::texture make_texture2d_array(format Format, extent2d const& Extent, size_t Layer, size_t Levels);
28 
29 	// Helper function to create a 2d array texture with a complete mipmap chain
30 	gli::texture make_texture2d_array(format Format, extent2d const& Extent, size_t Layer);
31 
32 	// Helper function to create a 3d texture with a specific number of levels
33 	gli::texture make_texture3d(format Format, extent3d const& Extent, size_t Levels);
34 
35 	// Helper function to create a 3d texture with a complete mipmap chain
36 	gli::texture make_texture3d(format Format, extent3d const& Extent);
37 
38 	// Helper function to create a cube texture with a specific number of levels
39 	gli::texture make_texture_cube(format Format, extent2d const& Extent, size_t Levels);
40 
41 	// Helper function to create a cube texture with a complete mipmap chain
42 	gli::texture make_texture_cube(format Format, extent2d const& Extent);
43 
44 	// Helper function to create a cube array texture with a specific number of levels
45 	gli::texture make_texture_cube_array(format Format, extent2d const& Extent, size_t Layer, size_t Levels);
46 
47 	// Helper function to create a cube array texture with a complete mipmap chain
48 	gli::texture make_texture_cube_array(format Format, extent2d const& Extent, size_t Layer);
49 }//namespace gli
50 
51 #include "./core/make_texture.inl"
52