namespace gli { template inline void clear(texture_type& Texture) { Texture.clear(); } template inline void clear(texture_type& Texture, gen_type const& BlockData) { Texture.clear(BlockData); } template inline void clear(texture_type& Texture, size_t Layer, size_t Face, size_t Level, gen_type const& BlockData) { Texture.clear(Layer, Face, Level, BlockData); } template inline void clear_level(texture_type& Texture, size_t BaseLevel, size_t LevelCount, gen_type const& BlockData) { for(size_t LayerIndex = 0, LayerCount = Texture.layers(); LayerIndex < LayerCount; ++LayerIndex) for(size_t FaceIndex = 0, FaceCount = Texture.faces(); FaceIndex < FaceCount; ++FaceIndex) for(size_t LevelIndex = 0; LevelIndex < LevelCount; ++LevelIndex) { Texture.template clear(LayerIndex, FaceIndex, BaseLevel + LevelIndex, BlockData); } } template inline void clear_level(texture_type& Texture, size_t BaseLevel, gen_type const& BlockData) { clear_level(Texture, BaseLevel, 1, BlockData); } template inline void clear_face(texture_type& Texture, size_t BaseFace, size_t FaceCount, gen_type const& BlockData) { for(size_t LayerIndex = 0, LayerCount = Texture.layers(); LayerIndex < LayerCount; ++LayerIndex) for(size_t FaceIndex = 0; FaceIndex < FaceCount; ++FaceIndex) for(size_t LevelIndex = 0, LevelCount = Texture.levels(); LevelIndex < LevelCount; ++LevelIndex) { Texture.template clear(LayerIndex, BaseFace + FaceIndex, LevelIndex, BlockData); } } template inline void clear_face(texture_type& Texture, size_t BaseFace, gen_type const& BlockData) { clear_face(Texture, BaseFace, 1, BlockData); } template inline void clear_layer(texture_type& Texture, size_t BaseLayer, size_t LayerCount, gen_type const& BlockData) { for(size_t LayerIndex = 0; LayerIndex < LayerCount; ++LayerIndex) for(size_t FaceIndex = 0, FaceCount = Texture.faces(); FaceIndex < FaceCount; ++FaceIndex) for(size_t LevelIndex = 0, LevelCount = Texture.levels(); LevelIndex < LevelCount; ++LevelIndex) { Texture.template clear(LayerIndex + BaseLayer, FaceIndex, LevelIndex, BlockData); } } template inline void clear_layer(texture_type& Texture, size_t BaseLayer, gen_type const& BlockData) { clear_layer(Texture, BaseLayer, 1, BlockData); } }//namespace gli