spirv: Use a dereference instead of vtn_variable_resource_index