+Texture::GenericLoader::TypeRegistry &Texture::get_texture_registry()
+{
+ static GenericLoader::TypeRegistry registry;
+ static bool initialized = false;
+ if(!initialized)
+ {
+ initialized = true;
+ registry.register_type<Texture1D>("1d");
+ registry.register_type<Texture2D>("2d");
+ registry.register_type<Texture3D>("3d");
+ registry.register_type<Texture2DArray>("2d_array");
+ registry.register_type<TextureCube>("cube");
+ }
+ return registry;
+}
+