Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions
riperiperi 79adba4402
Add support for render scale to vertex stage. (#2763)
* Add support for render scale to vertex stage.

Occasionally games read off textureSize on the vertex stage to inform the fragment shader what size a texture is without querying in there. Scales were not present in the vertex shader to correct the sizes, so games were providing the raw upscaled texture size to the fragment shader, which was incorrect.

One downside is that the fragment and vertex support buffer description must be identical, so the full size scales array must be defined when used. I don't think this will have an impact though. Another is that the fragment texture count must be updated when vertex shader textures are used. I'd like to correct this so that the update is folded into the update for the scales.

Also cleans up a bunch of things, like it making no sense to call CommitRenderScale for each stage.

Fixes render scale causing a weird offset bloom in Super Mario Party and Clubhouse Games. Clubhouse Games still has a pixelated look in a number of its games due to something else it does in the shader.

* Split out support buffer update, lazy updates.

* Commit support buffer before compute dispatch

* Remove unnecessary qualifier.

* Address Feedback
2022-01-08 14:48:48 -03:00
..
AtomicMinMaxS32Shared.glsl Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
AtomicMinMaxS32Storage.glsl Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
HelperFunctionNames.cs Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
MultiplyHighS32.glsl Support shared color mask, implement more shader instructions 2020-01-09 02:13:00 +01:00
MultiplyHighU32.glsl Support shared color mask, implement more shader instructions 2020-01-09 02:13:00 +01:00
Shuffle.glsl Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
ShuffleDown.glsl Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
ShuffleUp.glsl Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
ShuffleXor.glsl Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
StoreSharedSmallInt.glsl Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
StoreStorageSmallInt.glsl Fix shader 8-bit and 16-bit STS/STG (#2741) 2021-10-18 20:24:15 -03:00
SwizzleAdd.glsl Use shader subgroup extensions if shader ballot is not supported (#2627) 2021-09-19 14:38:39 +02:00
TexelFetchScale_cp.glsl Replace BGRA and scale uniforms with a uniform block (#2496) 2021-08-11 21:33:43 +02:00
TexelFetchScale_fp.glsl Add support for render scale to vertex stage. (#2763) 2022-01-08 14:48:48 -03:00
TexelFetchScale_vp.glsl Add support for render scale to vertex stage. (#2763) 2022-01-08 14:48:48 -03:00