[cexpr] Support casts from plist to vector

This makes specifying colors in the vulkan parser a lot easier.
This commit is contained in:
Bill Currie 2023-02-11 01:11:45 +09:00
parent 9706d2d9ce
commit cb99c4d907

View file

@ -582,6 +582,7 @@ binop_t vector_binops[] = {
{ '%', &cexpr_vector, &cexpr_vector, vector_rem }, { '%', &cexpr_vector, &cexpr_vector, vector_rem },
{ MOD, &cexpr_vector, &cexpr_vector, vector_mod }, { MOD, &cexpr_vector, &cexpr_vector, vector_mod },
{ '.', &cexpr_field, &cexpr_exprval, vector_swizzle }, { '.', &cexpr_field, &cexpr_exprval, vector_swizzle },
{ '=', &cexpr_plitem, &cexpr_vector, cexpr_cast_plitem },
{} {}
}; };