2021-02-07 21:54:35 -08:00
|
|
|
// Copyright 2021 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "shader_recompiler/backend/spirv/emit_spirv.h"
|
2021-05-03 16:53:00 -07:00
|
|
|
#include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
|
2021-12-05 14:24:54 -08:00
|
|
|
#include "shader_recompiler/backend/spirv/spirv_emit_context.h"
|
2021-02-07 21:54:35 -08:00
|
|
|
|
|
|
|
namespace Shader::Backend::SPIRV {
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
Id EmitUndefU1(EmitContext& ctx) {
|
2021-02-15 23:10:22 -08:00
|
|
|
return ctx.OpUndef(ctx.U1);
|
2021-02-07 21:54:35 -08:00
|
|
|
}
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
Id EmitUndefU8(EmitContext&) {
|
2021-02-07 21:54:35 -08:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
Id EmitUndefU16(EmitContext&) {
|
2021-02-07 21:54:35 -08:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
Id EmitUndefU32(EmitContext& ctx) {
|
2021-02-15 23:10:22 -08:00
|
|
|
return ctx.OpUndef(ctx.U32[1]);
|
2021-02-07 21:54:35 -08:00
|
|
|
}
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
Id EmitUndefU64(EmitContext&) {
|
2021-02-07 21:54:35 -08:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Shader::Backend::SPIRV
|