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