It's unfortunate that you wasted your time with this. MAME actually has had a proper data-driven shader system for the past couple of months now, using the BGFX rendering backend. Had you gone that route, you could have submitted the shaders directly to the MAME team for inclusion in mainline MAME. As it is now, though, it's a hack and can't be included.
|