Raw Image UGUI Masking Problem

6062108--656471--upload_2020-7-6_19-9-56.png

For a game I'm making I'm using the new DOTS system to handle drawing what usually would be sprites using a particle shader and a texture with UV coordinates. However this means when using the regular UI to display the same items I am forced to use the RawImage component instead of Image, and as you can see in the picture, it doesn't work with masks.

Are there workarounds to this? Should I write custom shader code? What would the performance hit be?

I did a quick test - for me raw images work with masks without problem (both, Image Masks and RectMask2D).
Maybe it has to do with some import settings of the textures?