mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
79adba4402
* 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
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
|
{
|
|
static class DefaultNames
|
|
{
|
|
public const string LocalNamePrefix = "temp";
|
|
|
|
public const string SamplerNamePrefix = "tex";
|
|
public const string ImageNamePrefix = "img";
|
|
|
|
public const string PerPatchAttributePrefix = "patch_attr_";
|
|
public const string IAttributePrefix = "in_attr";
|
|
public const string OAttributePrefix = "out_attr";
|
|
|
|
public const string StorageNamePrefix = "s";
|
|
|
|
public const string DataName = "data";
|
|
|
|
public const string SupportBlockName = "support_block";
|
|
public const string SupportBlockAlphaTestName = "s_alpha_test";
|
|
public const string SupportBlockIsBgraName = "s_is_bgra";
|
|
public const string SupportBlockFragmentScaleCount = "s_frag_scale_count";
|
|
public const string SupportBlockRenderScaleName = "s_render_scale";
|
|
|
|
public const string BlockSuffix = "block";
|
|
|
|
public const string UniformNamePrefix = "c";
|
|
public const string UniformNameSuffix = "data";
|
|
|
|
public const string LocalMemoryName = "local_mem";
|
|
public const string SharedMemoryName = "shared_mem";
|
|
|
|
public const string ArgumentNamePrefix = "a";
|
|
|
|
public const string UndefinedName = "undef";
|
|
}
|
|
} |