Many use MAME PC dated or Mini PC with CPU Baytrail or Cherrytrail where the HLSL filter can not be activated specifically in relation to the absence of separate GPU.
I rediscovered a Mame function with a special mask used as a filter, which does not regret HLSL for lower spec PCs.
Download this file
https://1drv.ms/u/s!AhJaE5ijxFe5hdMolEFexICm-a-ZpA
unzip the "ARTWORK" Mame Folder .
Once you placed the file in the folder, open mame.ini
and write the filter you want to use (including .png as in the photo)
Scroll up to
# WINDOWS VIDEO OPTIONS
#
menu 1
effect Scanlines75Dx4.png 1
In Mame setting Turn even triple buffering options / video- V Sync etc.
ENJOY !!!!!! FInally Amazing scanlines without HLSL !!!!
LOVE !!!