If not literal, check specialization_constant entries for "variable_id" to link up ID with spec constant values. This maps directly to C++ API.