2021-02-08 06:54:35 +01: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"
|
|
|
|
|
|
|
|
namespace Shader::Backend::SPIRV {
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitBitCastU16F16(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
Id EmitBitCastU32F32(EmitContext& ctx, Id value) {
|
2021-02-16 08:10:22 +01:00
|
|
|
return ctx.OpBitcast(ctx.U32[1], value);
|
2021-02-08 06:54:35 +01:00
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitBitCastU64F64(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitBitCastF16U16(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
Id EmitBitCastF32U32(EmitContext& ctx, Id value) {
|
2021-02-16 08:10:22 +01:00
|
|
|
return ctx.OpBitcast(ctx.F32[1], value);
|
2021-02-08 06:54:35 +01:00
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitBitCastF64U64(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitPackUint2x32(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitUnpackUint2x32(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitPackFloat2x16(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitUnpackFloat2x16(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitPackDouble2x32(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
2021-02-17 04:59:28 +01:00
|
|
|
void EmitUnpackDouble2x32(EmitContext&) {
|
2021-02-08 06:54:35 +01:00
|
|
|
throw NotImplementedException("SPIR-V Instruction");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Shader::Backend::SPIRV
|