While conventional photodetectors can only measure light intensity, the vectorial light field contains much richer information, including polarization and spectrum, that are essential for numerous applications ranging from imaging to telecommunication. However, the simultaneous measurement of multi-dimensional light field information typically requires the multiplexing of dispersive or polarization-selective elements, leading to excessive system complexity. Here, we demonstrate a near-infrared spectropolarimeter based on an electrically-tunable liquid crystal metasurface. The tunable metasurface, which acts as an encoder of the vectorial light field, is tailored to support high-quality-factor guided-mode resonances with diverse and anisotropic spectral features, thus allowing the full Stokes parameters and the spectrum of the incident light to be computationally reconstructed with high fidelity. The concept of using a tunable metasurface for multi-dimensional light field encoding may open up new horizons for developing vectorial light field sensors with minimized size, weight, cost, and complexity.