2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-12-05 21:58:18 +00:00
|
|
|
|
|
|
|
#include "shader_recompiler/backend/glasm/emit_glasm_instructions.h"
|
|
|
|
#include "shader_recompiler/backend/glasm/glasm_emit_context.h"
|
|
|
|
|
|
|
|
namespace Shader::Backend::GLASM {
|
|
|
|
|
|
|
|
void EmitBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("BAR;");
|
|
|
|
}
|
|
|
|
|
|
|
|
void EmitWorkgroupMemoryBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("MEMBAR.CTA;");
|
|
|
|
}
|
|
|
|
|
|
|
|
void EmitDeviceMemoryBarrier(EmitContext& ctx) {
|
|
|
|
ctx.Add("MEMBAR;");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Shader::Backend::GLASM
|