2021-06-10 00:29:19 -04:00
|
|
|
// Copyright 2021 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
|
2021-12-05 16:42:03 -05:00
|
|
|
#include "shader_recompiler/backend/glsl/glsl_emit_context.h"
|
2021-06-10 00:29:19 -04:00
|
|
|
#include "shader_recompiler/exception.h"
|
|
|
|
|
|
|
|
namespace Shader::Backend::GLSL {
|
|
|
|
|
|
|
|
void EmitJoin(EmitContext&) {
|
|
|
|
throw NotImplementedException("Join shouldn't be emitted");
|
|
|
|
}
|
|
|
|
|
2021-06-11 00:33:33 -04:00
|
|
|
void EmitDemoteToHelperInvocation(EmitContext& ctx) {
|
2021-06-10 00:29:19 -04:00
|
|
|
ctx.Add("discard;");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Shader::Backend::GLSL
|