mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 22:17:48 +00:00
Shader Recomnpiler: implement textuzreGrad 3D emulation constant propagation
This commit is contained in:
parent
1f584c14e7
commit
01858648d1
8 changed files with 261 additions and 11 deletions
|
@ -172,6 +172,7 @@ void Impl(TranslatorVisitor& v, u64 insn, bool aoffi, Blod blod, bool lc,
|
|||
info.is_depth.Assign(tex.dc != 0 ? 1 : 0);
|
||||
info.has_bias.Assign(blod == Blod::LB || blod == Blod::LBA ? 1 : 0);
|
||||
info.has_lod_clamp.Assign(lc ? 1 : 0);
|
||||
info.ndv_is_active.Assign(tex.ndv != 0 ? 1 : 0);
|
||||
|
||||
const IR::Value sample{[&]() -> IR::Value {
|
||||
if (tex.dc == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue