softgpu : use switch case for texture format