Added texturetype-to-samplertype conversion