mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00

* render/bgfx: Improved clearing and blending. Added prescale support. Fixes MT07586, MT07587, MT08084. * render/bgfx: Fixed blend and tint handling. (Fixes Github #1953). * render/bgfx/blendreader.cpp: Support non-separated blend mode specification for BGFX effects. * render/bgfx: Reworked how horizontally-padded screen textures are handled. Likely fixes MT08512 and MT08505. * render/bgfx: Ensure that a texture's width margin is updated in all cases. * render/d3d/d3dhlsl.cpp: Fixed tinting in HLSL post-processing mode. * render/d3d/d3dhlsl.cpp: Avoid most redundant state-setting calls. Reduces D3D API calls by about 90% on fruit machine drivers. * render/d3d/d3dhlsl.cpp: Assign SourceDims and QuadDims uniforms to only those effects that use them. * machine/laserdsc.cpp: Always add video quad to screen container, adjust tint based on m_videoenable instead.
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
// license:LGPL-2.1+
|
|
// copyright-holders:Jules Blok,Cameron Zemek,Maxim Stepin
|
|
|
|
/*
|
|
* Copyright (C) 2003 Maxim Stepin ( maxst@hiend3d.com )
|
|
*
|
|
* Copyright (C) 2010 Cameron Zemek ( grom@zeminvaders.net )
|
|
*
|
|
* Copyright (C) 2014 Jules Blok ( jules@aerix.nl )
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
|
|
* USA
|
|
*/
|
|
|
|
{
|
|
"name": "HQ3x",
|
|
"author": "libretro",
|
|
"targets": [
|
|
{
|
|
"name": "scaled_out",
|
|
"mode": "guest",
|
|
"scale": 3,
|
|
"doublebuffer": true
|
|
},
|
|
{
|
|
"name": "internal",
|
|
"mode": "native",
|
|
"doublebuffer": true
|
|
}
|
|
],
|
|
"passes": [
|
|
{
|
|
"effect": "hqx/hq3x",
|
|
"name": "HQ3x pass",
|
|
"input": [
|
|
{ "sampler": "decal", "texture": "screen" },
|
|
{ "sampler": "LUT", "texture": "bgfx/chains/hq3x.png", "bilinear": false }
|
|
],
|
|
"output": "scaled_out"
|
|
},
|
|
{ "effect": "misc/blit",
|
|
"name": "Final Blit",
|
|
"input": [
|
|
{ "sampler": "s_tex", "target": "scaled_out" }
|
|
],
|
|
"output": "output"
|
|
}
|
|
]
|
|
}
|