Skip to content

a rather serious issue!! #141

@L-vinCent

Description

@L-vinCent

I encountered a rather serious issue. Using this JPG image and applying a simple filter with the following shader (which directly outputs the original image),


fragment half4 brightnessFragment(SingleInputVertexIO fragmentInput [[stage_in]],
                                  texture2d<half> inputTexture [[texture(0)]],
                                  constant BrightnessUniform& uniform [[ buffer(1) ]])
{
    constexpr sampler quadSampler;
    half4 color = inputTexture.sample(quadSampler, fragmentInput.textureCoordinate);
    
    return half4(color.rgb, 1.0);
}

the result should theoretically remain unchanged. However, the resulting image shows a noticeable decrease in saturation. Below are the original image and the resulting image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions