diff options
| author | 2021-05-20 02:40:58 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:32 -0400 | |
| commit | 8fdb00a2b5fccb2378497dc7229639851c60f02b (patch) | |
| tree | 49d3f45bfd14989d50cd7d3ed0d0cb336674b0f5 /src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | |
| parent | glasm: Implement ImageRead (diff) | |
| download | yuzu-8fdb00a2b5fccb2378497dc7229639851c60f02b.tar.gz yuzu-8fdb00a2b5fccb2378497dc7229639851c60f02b.tar.xz yuzu-8fdb00a2b5fccb2378497dc7229639851c60f02b.zip | |
glasm: Implement ImageWrite
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp index beee9cf06..ed0b65e16 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | |||
| @@ -572,10 +572,13 @@ void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Reg | |||
| 572 | StoreSparse(ctx, sparse_inst); | 572 | StoreSparse(ctx, sparse_inst); |
| 573 | } | 573 | } |
| 574 | 574 | ||
| 575 | void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 575 | void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord, |
| 576 | [[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coord, | 576 | Register color) { |
| 577 | [[maybe_unused]] Register color) { | 577 | const auto info{inst.Flags<IR::TextureInstInfo>()}; |
| 578 | throw NotImplementedException("GLASM instruction"); | 578 | const std::string_view format{FormatStorage(info.image_format)}; |
| 579 | const std::string_view type{TextureType(info)}; | ||
| 580 | const std::string image{Image(ctx, info, index)}; | ||
| 581 | ctx.Add("STOREIM.{} {},{},{},{};", format, image, color, coord, type); | ||
| 579 | } | 582 | } |
| 580 | 583 | ||
| 581 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { | 584 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { |