Changed RenderSurfaceType enum to enum class