glasm: Implement ImageQueryLod
This commit is contained in:
parent
4a22942f45
commit
12dcb9fcc2
1 changed files with 5 additions and 3 deletions
|
@ -457,9 +457,11 @@ void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value&
|
||||||
ctx.Add("TXQ {},{},{},{};", inst, lod, texture, type);
|
ctx.Add("TXQ {},{},{},{};", inst, lod, texture, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitImageQueryLod([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord) {
|
||||||
[[maybe_unused]] const IR::Value& index, [[maybe_unused]] Register coord) {
|
const auto info{inst.Flags<IR::TextureInstInfo>()};
|
||||||
throw NotImplementedException("GLASM instruction");
|
const std::string texture{Texture(ctx, info, index)};
|
||||||
|
const std::string_view type{TextureType(info)};
|
||||||
|
ctx.Add("LOD.F {},{},{},{};", inst, coord, texture, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitImageGradient([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
void EmitImageGradient([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
|
||||||
|
|
Loading…
Reference in a new issue