summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders/opengl_convert_s8d24.comp
blob: 970203214c4e81eebaedf39975e1810e420679f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#version 430 core

layout(local_size_x = 16, local_size_y = 8) in;

layout(binding = 0, rgba8ui) restrict uniform uimage2D destination;
layout(location = 0) uniform uvec3 size;

void main() {
    if (any(greaterThanEqual(gl_GlobalInvocationID, size))) {
        return;
    }
    uvec4 components = imageLoad(destination, ivec2(gl_GlobalInvocationID.xy));
    imageStore(destination, ivec2(gl_GlobalInvocationID.xy), components.wxyz);
}