1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
Ryujinx/Ryujinx.Graphics.Gpu/Shader
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
..
Cache infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
CachedGpuAccessor.cs Initial tessellation shader support (#2534) 2021-10-18 18:38:04 -03:00
GpuAccessor.cs Initial tessellation shader support (#2534) 2021-10-18 18:38:04 -03:00
GpuAccessorState.cs Initial tessellation shader support (#2534) 2021-10-18 18:38:04 -03:00
ShaderAddresses.cs Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919) 2020-04-21 07:59:59 +10:00
ShaderBundle.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
ShaderCache.cs Add support for render scale to vertex stage. (#2763) 2022-01-08 14:48:48 -03:00
ShaderCacheState.cs Fix inconsistencies in progress reporting (#2129) 2021-03-22 19:40:07 +01:00
ShaderCodeHolder.cs Salieri: shader cache (#1701) 2020-11-13 00:15:34 +01:00
ShaderCompileTask.cs Use a new approach for shader BRX targets (#2532) 2021-08-11 20:59:42 +02:00
ShaderDumper.cs Make sure attributes used on subsequent shader stages are initialized (#2538) 2021-08-11 22:27:00 +02:00
ShaderDumpPaths.cs Make sure attributes used on subsequent shader stages are initialized (#2538) 2021-08-11 22:27:00 +02:00
TextureDescriptorCapableGpuAccessor.cs Add support for fragment shader interlock (#2768) 2021-10-28 19:53:12 -03:00