Add "default virtual" type to filter policies
Now that !1585 (merged) has been merged, VariantArrayHandle::AsVirtual<T>()
will cast to the requested value type (when possible).
This will allow us to specify fallback paths for filters when an array with an unexpected value type is passed in. The policy should specify:
- A fallback type for scalar types
- A fallback type for integral types (split into signed/unsigned?)
- Supported VecShapes (see this patch) for each of the above.
Then, the cast and call will attempt to cast to the FieldTypeList
, and if this fails, try to perform an exact cast to a supported virtual type (already implemented), and if that fails, force a cast + virtualization to the appropriate fallback type.
Edited by Allison Vacanti