_getDefaultSingleVtValue#
Fully qualified name: usd_optimize::_getDefaultSingleVtValue
- PXR_NS::VtValue usd_optimize::_getDefaultSingleVtValue(
- const PXR_NS::VtValue &value,
Given a VtValue, this function attempts to return a default single value of the same type, or the element type if the VtValue holds an array.
For example, for a VtValue holding an
intthis function would return a VtValue holding anintwith a value of 0. And for a VtValue holding anVtArray<int>this function would also return a VtValue holding a singleintwith a value of 0.- Parameters:
value – The VtValue to get a default single value for.
- Returns:
A default single VtValue of the same type or element type - or an empty VtValue if unsupported.