Refine declaration of TextureFactory
Some code format revision in TextureFormat
Added sample method create_texture2d_format