summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/chains/hqx/hq4x.json
blob: 347ff1c18b55caa556b2e90dd4156d3ed97f7b46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// 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": "HQ4x",
	"author": "libretro",
	"targets": [
		{
			"name": "scaled_out",
			"mode": "guest",
			"scale": 4,
			"doublebuffer": true
		},
		{
			"name": "internal",
			"mode": "native",
			"doublebuffer": true
		}
	],
	"passes": [
		{
			"effect": "hqx/hq4x",
			"name": "HQ4x pass",
			"input": [
				{ "sampler": "decal", "texture": "screen" },
				{ "sampler": "LUT",   "texture": "bgfx/chains/hq4x.png", "bilinear": false }
			],
			"output": "scaled_out"
		},
		{   "effect": "misc/blit",
			"name": "Final Blit",
			"input": [
				{ "sampler": "s_tex", "target": "scaled_out" }
			],
			"output": "output"
		}
	]
}