summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-21 20:56:46 -0400
committerGravatar ameerj2021-07-22 21:51:36 -0400
commit0f40b0e61ccc04216e0840e092dfe3051716b8b6 (patch)
tree7c12a0e010dd9aecef164b10a848085957f15358 /src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
parentglsl: Use std::string_view for Emit function args. (diff)
downloadyuzu-0f40b0e61ccc04216e0840e092dfe3051716b8b6.tar.gz
yuzu-0f40b0e61ccc04216e0840e092dfe3051716b8b6.tar.xz
yuzu-0f40b0e61ccc04216e0840e092dfe3051716b8b6.zip
glsl: Implement a few Integer instructions
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_select.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_select.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
index e69de29bb..86d38da98 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_select.cpp
@@ -0,0 +1,61 @@
1// Copyright 2021 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include <string_view>
6
7#include "shader_recompiler/backend/glsl/emit_context.h"
8#include "shader_recompiler/backend/glsl/emit_glsl_instructions.h"
9#include "shader_recompiler/frontend/ir/value.h"
10#include "shader_recompiler/profile.h"
11
12namespace Shader::Backend::GLSL {
13void EmitSelectU1([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
14 [[maybe_unused]] std::string_view true_value,
15 [[maybe_unused]] std::string_view false_value) {
16 throw NotImplementedException("GLSL Instruction");
17}
18
19void EmitSelectU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
20 [[maybe_unused]] std::string_view true_value,
21 [[maybe_unused]] std::string_view false_value) {
22 throw NotImplementedException("GLSL Instruction");
23}
24
25void EmitSelectU16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
26 [[maybe_unused]] std::string_view true_value,
27 [[maybe_unused]] std::string_view false_value) {
28 throw NotImplementedException("GLSL Instruction");
29}
30
31void EmitSelectU32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
32 [[maybe_unused]] std::string_view true_value,
33 [[maybe_unused]] std::string_view false_value) {
34 throw NotImplementedException("GLSL Instruction");
35}
36
37void EmitSelectU64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
38 [[maybe_unused]] std::string_view true_value,
39 [[maybe_unused]] std::string_view false_value) {
40 throw NotImplementedException("GLSL Instruction");
41}
42
43void EmitSelectF16([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
44 [[maybe_unused]] std::string_view true_value,
45 [[maybe_unused]] std::string_view false_value) {
46 throw NotImplementedException("GLSL Instruction");
47}
48
49void EmitSelectF32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
50 [[maybe_unused]] std::string_view true_value,
51 [[maybe_unused]] std::string_view false_value) {
52 throw NotImplementedException("GLSL Instruction");
53}
54
55void EmitSelectF64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] std::string_view cond,
56 [[maybe_unused]] std::string_view true_value,
57 [[maybe_unused]] std::string_view false_value) {
58 throw NotImplementedException("GLSL Instruction");
59}
60
61} // namespace Shader::Backend::GLSL