PxScene::sweep and PxHitFlag::eMESH_MULTIPLE

I have a scenario where I want a sweep to only consider triangles with some specific materials. This is possible with raycasts, but eMESH_MULTIPLE is not supported for sweeps according to the docs. Is there a workaround?

For now I’m manually calling PxMeshQuery::findOverlapTriangleMesh() with a capsule shape approximation to find individual triangles for shapes found in the sweep, but this is hacky and I need to calculate distances myself.

Another option I’ve considered is to make an additional scene pouplated with new triangle mesh shapes consisting of only the interesting materials, but this could explode into many variants if the material filtering complexity increases.

Any advice?