aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/TexelFetchScale_cp.glsl
blob: 88d18246d3eb9b99ce9b4969c6a113d439b00820 (plain)
1
2
3
4
5
6
7
8
9
ivec2 Helper_TexelFetchScale(ivec2 inputVec, int samplerIndex)
{
    float scale = cp_renderScale[samplerIndex];
    if (scale == 1.0)
    {
        return inputVec;
    }
    return ivec2(vec2(inputVec) * scale);
}