diff options
| author | 2021-02-08 02:54:35 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | 2930dccecc933d6748772e9f51a5724fe1e6771b (patch) | |
| tree | ec4aa48062f8a2fcba31b1c64f769ddf25a87832 /src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp | |
| parent | shader: Better constant folding (diff) | |
| download | yuzu-2930dccecc933d6748772e9f51a5724fe1e6771b.tar.gz yuzu-2930dccecc933d6748772e9f51a5724fe1e6771b.tar.xz yuzu-2930dccecc933d6748772e9f51a5724fe1e6771b.zip | |
spirv: Initial SPIR-V support
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp new file mode 100644 index 000000000..b190cf876 --- /dev/null +++ b/src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp | |||
| @@ -0,0 +1,105 @@ | |||
| 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 "shader_recompiler/backend/spirv/emit_spirv.h" | ||
| 6 | |||
| 7 | namespace Shader::Backend::SPIRV { | ||
| 8 | |||
| 9 | void EmitSPIRV::EmitCompositeConstructU32x2(EmitContext&) { | ||
| 10 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 11 | } | ||
| 12 | |||
| 13 | void EmitSPIRV::EmitCompositeConstructU32x3(EmitContext&) { | ||
| 14 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 15 | } | ||
| 16 | |||
| 17 | void EmitSPIRV::EmitCompositeConstructU32x4(EmitContext&) { | ||
| 18 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 19 | } | ||
| 20 | |||
| 21 | void EmitSPIRV::EmitCompositeExtractU32x2(EmitContext&) { | ||
| 22 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 23 | } | ||
| 24 | |||
| 25 | Id EmitSPIRV::EmitCompositeExtractU32x3(EmitContext& ctx, Id vector, u32 index) { | ||
| 26 | return ctx.OpCompositeExtract(ctx.u32[1], vector, index); | ||
| 27 | } | ||
| 28 | |||
| 29 | void EmitSPIRV::EmitCompositeExtractU32x4(EmitContext&) { | ||
| 30 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 31 | } | ||
| 32 | |||
| 33 | void EmitSPIRV::EmitCompositeConstructF16x2(EmitContext&) { | ||
| 34 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 35 | } | ||
| 36 | |||
| 37 | void EmitSPIRV::EmitCompositeConstructF16x3(EmitContext&) { | ||
| 38 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 39 | } | ||
| 40 | |||
| 41 | void EmitSPIRV::EmitCompositeConstructF16x4(EmitContext&) { | ||
| 42 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 43 | } | ||
| 44 | |||
| 45 | void EmitSPIRV::EmitCompositeExtractF16x2(EmitContext&) { | ||
| 46 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 47 | } | ||
| 48 | |||
| 49 | void EmitSPIRV::EmitCompositeExtractF16x3(EmitContext&) { | ||
| 50 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 51 | } | ||
| 52 | |||
| 53 | void EmitSPIRV::EmitCompositeExtractF16x4(EmitContext&) { | ||
| 54 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 55 | } | ||
| 56 | |||
| 57 | void EmitSPIRV::EmitCompositeConstructF32x2(EmitContext&) { | ||
| 58 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 59 | } | ||
| 60 | |||
| 61 | void EmitSPIRV::EmitCompositeConstructF32x3(EmitContext&) { | ||
| 62 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 63 | } | ||
| 64 | |||
| 65 | void EmitSPIRV::EmitCompositeConstructF32x4(EmitContext&) { | ||
| 66 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 67 | } | ||
| 68 | |||
| 69 | void EmitSPIRV::EmitCompositeExtractF32x2(EmitContext&) { | ||
| 70 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 71 | } | ||
| 72 | |||
| 73 | void EmitSPIRV::EmitCompositeExtractF32x3(EmitContext&) { | ||
| 74 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 75 | } | ||
| 76 | |||
| 77 | void EmitSPIRV::EmitCompositeExtractF32x4(EmitContext&) { | ||
| 78 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 79 | } | ||
| 80 | |||
| 81 | void EmitSPIRV::EmitCompositeConstructF64x2(EmitContext&) { | ||
| 82 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 83 | } | ||
| 84 | |||
| 85 | void EmitSPIRV::EmitCompositeConstructF64x3(EmitContext&) { | ||
| 86 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 87 | } | ||
| 88 | |||
| 89 | void EmitSPIRV::EmitCompositeConstructF64x4(EmitContext&) { | ||
| 90 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 91 | } | ||
| 92 | |||
| 93 | void EmitSPIRV::EmitCompositeExtractF64x2(EmitContext&) { | ||
| 94 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 95 | } | ||
| 96 | |||
| 97 | void EmitSPIRV::EmitCompositeExtractF64x3(EmitContext&) { | ||
| 98 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 99 | } | ||
| 100 | |||
| 101 | void EmitSPIRV::EmitCompositeExtractF64x4(EmitContext&) { | ||
| 102 | throw NotImplementedException("SPIR-V Instruction"); | ||
| 103 | } | ||
| 104 | |||
| 105 | } // namespace Shader::Backend::SPIRV | ||