MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Jezze
Reged: 03/14/05
Posts: 72
Send PM
Re: xBRZ Shaders for MAME and HBMAME
06/04/16 11:15 AM


The BGFX shader syntax is pretty much identical to GLSL. As example you can take a look at the already implemented HQx pixel filter.

e.g. /mame/src/osd/modules/render/bgfx/shaders/chains/hqx

You compile the shaders with the regular MAME build tools and the command line 'make shaders'. The shader binaries are built into /mame/bgfx/shaders/[backend]/[shader].

In addition you need to define some meta information like uniforms, sliders, targets and passes.

e.g. /mame/bgfx/effects/hqx
The format of the effects/*.json files is documented in /mame/bgfx/effects/default/blit.json.

e.g. /mame/bgfx/chains/hqx
The format of the chains/*.json files is documented in /mame/bgfx/chains/hlsl.json.







Entire thread
Subject Posted by Posted on
* xBRZ Shaders for MAME and HBMAME crazy46guy 06/01/16 09:15 AM
. * Re: xBRZ Shaders for MAME and HBMAME MooglyGuy  06/01/16 12:50 PM
. * Re: xBRZ Shaders for MAME and HBMAME crazy46guy  06/02/16 02:09 AM
. * Re: xBRZ Shaders for MAME and HBMAME Jezze  06/04/16 11:15 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 240 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5718