mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
glasm: Implement ImageWrite
This commit is contained in:
parent
dadd192b30
commit
8fdb00a2b5
1 changed files with 7 additions and 4 deletions
|
@ -572,10 +572,13 @@ void EmitImageRead(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Reg
|
||||||
StoreSparse(ctx, sparse_inst);
|
StoreSparse(ctx, sparse_inst);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
void EmitImageWrite(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord,
|
||||||
[[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coord,
|
Register color) {
|
||||||
[[maybe_unused]] Register color) {
|
const auto info{inst.Flags<IR::TextureInstInfo>()};
|
||||||
throw NotImplementedException("GLASM instruction");
|
const std::string_view format{FormatStorage(info.image_format)};
|
||||||
|
const std::string_view type{TextureType(info)};
|
||||||
|
const std::string image{Image(ctx, info, index)};
|
||||||
|
ctx.Add("STOREIM.{} {},{},{},{};", format, image, color, coord, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitBindlessImageSampleImplicitLod(EmitContext&) {
|
void EmitBindlessImageSampleImplicitLod(EmitContext&) {
|
||||||
|
|
Loading…
Reference in a new issue