summaryrefslogtreecommitdiffstats
path: root/src/video_core/host_shaders/resolve_conditional_render.comp
blob: 307e77d1add8f82632066d13c43730ad8b443739 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#version 450

layout(local_size_x = 1) in;

layout(std430, binding = 0) buffer Query {
    uvec2 initial;
    uvec2 unknown;
    uvec2 current;
};

layout(std430, binding = 1) buffer Result {
    uint result;
};

void main() {
    result = all(equal(initial, current)) ? 1 : 0;
}