Triforce v0.5.0

In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-17 22:40:50 -06:00
parent 93eeb714c2
commit 6f338c8f56
600 changed files with 116254 additions and 2522 deletions

4523
third_party/smaa/AreaTex.h vendored Normal file

File diff suppressed because it is too large Load Diff

24
third_party/smaa/LICENSE.txt vendored Normal file
View File

@@ -0,0 +1,24 @@
Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
Permission is hereby granted, free of charge, to any person obtaining a copy
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. As clarification, there is no
requirement that the copyright notice and permission be included in binary
distributions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

27
third_party/smaa/PROVENANCE.md vendored Normal file
View File

@@ -0,0 +1,27 @@
# SMAA
SMAA (Enhanced Subpixel Morphological Antialiasing), used for the Insert menu's Anti-aliasing row's **SMAA Ultra**
(`gpu/vk/vk_aa.cpp`, `gpu/vk/shaders/smaa_*.comp`).
- Upstream: https://github.com/iryoku/smaa, commit `71c806a838bdd7d517df19192a20f0c61b3ca29d`
- Copyright (C) 2013 Jorge Jimenez, Jose I. Echevarria, Belen Masia, Fernando Navarro, Diego Gutierrez
- License: MIT, in `LICENSE.txt`. Keep it with the sources. (Its text says the notice need not go with binaries.)
What is here and why:
| | |
|---|---|
| `SMAA.hlsl` | The reference implementation, unmodified (sha256 `fafdaa26c30ee6c12c2610c3093d7109f9df99207f23fcf9e215b6516296aafd`). The passes in `gpu/vk/shaders/smaa_*.comp` include it with `SMAA_GLSL_4` and `SMAA_PRESET_ULTRA` and call its functions from compute shaders |
| `AreaTex.h`, `SearchTex.h` | The two precomputed lookup textures: the bytes of upstream's `Textures/AreaTex.h` (160 x 560, two bytes a texel) and `Textures/SearchTex.h` (64 x 16, one byte a texel), under upstream's names (`areaTexBytes`, `searchTexBytes`, `AREATEX_*`, `SEARCHTEX_*`). The arrays are written out again, a decimal number a byte, so the two files are not upstream's text; each names the sha256 of its bytes (`35065cef2a02cabcad711d6bf430239ae64e27d71c4e4fa06f29cce2c992f0d2` and `3694eae5e9d44b8ebb4415a13f8c7b94dc08a2fc86658434d771c4610fe5744d`). `gpu/vk/vk_aa.cpp` includes them |
| `LICENSE.txt` | The MIT notice |
These files came by way of NX2navi (`runtime/shaders/smaa.glsl` and `runtime/third_party/smaa/` at its commit
`62cc3b13`), which names the upstream commit above; they were not compared with upstream again when they were added
here. To check them: `SMAA.hlsl` against upstream's file of that name, the two arrays against the bytes upstream's
headers list (`tests/test_aa_shaders.py` checks each header's bytes against the sha256 it names).
The SPIR-V in `gpu/vk/shaders/smaa_*_comp_spv.h` is compiled from `gpu/vk/shaders/smaa_*.comp` and `SMAA.hlsl` by
`python -I -B tests/test_aa_shaders.py --write` (glslangValidator), and the same test proves the checked-in headers
still match their sources.
Nothing in this folder is edited. A change belongs in a new folder with its own note, per `CONTRIBUTING.md`.

1361
third_party/smaa/SMAA.hlsl vendored Normal file

File diff suppressed because it is too large Load Diff

69
third_party/smaa/SearchTex.h vendored Normal file
View File

@@ -0,0 +1,69 @@
/**
* Copyright (C) 2013 Jorge Jimenez (jorge@iryoku.com)
* Copyright (C) 2013 Jose I. Echevarria (joseignacioechevarria@gmail.com)
* Copyright (C) 2013 Belen Masia (bmasia@unizar.es)
* Copyright (C) 2013 Fernando Navarro (fernandn@microsoft.com)
* Copyright (C) 2013 Diego Gutierrez (diegog@unizar.es)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to
* do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software. As clarification, there
* is no requirement that the copyright notice and permission be included in
* binary distributions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/* SMAA's search texture: the bytes of the SMAA project's Textures/SearchTex.h (searchTexBytes: 64 x 16 texels of
one byte, R8), written out again a number a byte. See PROVENANCE.md.
(sha256 of the bytes: 3694eae5e9d44b8ebb4415a13f8c7b94dc08a2fc86658434d771c4610fe5744d) */
#ifndef SEARCHTEX_H
#define SEARCHTEX_H
#define SEARCHTEX_WIDTH 64
#define SEARCHTEX_HEIGHT 16
#define SEARCHTEX_PITCH SEARCHTEX_WIDTH
#define SEARCHTEX_SIZE (SEARCHTEX_HEIGHT * SEARCHTEX_PITCH)
static const unsigned char searchTexBytes[] = {
254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,
127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,
0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,
254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,254,0,127,127,0,0,254,254,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,
127,127,0,0,127,127,0,127,127,254,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,
127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,
127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,
127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,0,0,0,0,
0,0,0,0,0,127,127,0,127,127,0,0,127,127,0,127,127,127,127,0,0,0,0,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};
#endif