This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-06-07 19:52:44 +00:00
|
|
|
|
|
|
|
#include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
|
2021-12-05 21:42:03 +00:00
|
|
|
#include "shader_recompiler/backend/glsl/glsl_emit_context.h"
|
2021-06-07 19:52:44 +00:00
|
|
|
|
|
|
|
namespace Shader::Backend::GLSL {
|
|
|
|
void EmitBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("barrier();");
|
|
|
|
}
|
|
|
|
|
|
|
|
void EmitWorkgroupMemoryBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("groupMemoryBarrier();");
|
|
|
|
}
|
|
|
|
|
|
|
|
void EmitDeviceMemoryBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("memoryBarrier();");
|
|
|
|
}
|
|
|
|
} // namespace Shader::Backend::GLSL
|