summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-17 02:52:01 -0300
committerGravatar ameerj2021-07-22 21:51:31 -0400
commitec6fc5fe78c9038fc9ad7259b7b3a7be751ecef6 (patch)
tree063963b0a197526467902ef9bfceff1be8f5b9ef /src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
parentglasm: Add support for non-2D texture samples (diff)
downloadyuzu-ec6fc5fe78c9038fc9ad7259b7b3a7be751ecef6.tar.gz
yuzu-ec6fc5fe78c9038fc9ad7259b7b3a7be751ecef6.tar.xz
yuzu-ec6fc5fe78c9038fc9ad7259b7b3a7be751ecef6.zip
glasm: Implement TEX and TEXS instructions
Remove lod clamp from texture instructions with lod, as this is not needed (nor supported).
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_instructions.h')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_instructions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
index a128f9ac4..54e7fab3c 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
@@ -527,12 +527,12 @@ void EmitBoundImageWrite(EmitContext&);
527void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 527void EmitImageSampleImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
528 const IR::Value& coord, Register bias_lc, const IR::Value& offset); 528 const IR::Value& coord, Register bias_lc, const IR::Value& offset);
529void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 529void EmitImageSampleExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
530 Register coord, Register lod_lc, const IR::Value& offset); 530 const IR::Value& coord, ScalarF32 lod, const IR::Value& offset);
531void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 531void EmitImageSampleDrefImplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
532 Register coord, Register dref, Register bias_lc, 532 const IR::Value& coord, ScalarF32 dref, Register bias_lc,
533 const IR::Value& offset); 533 const IR::Value& offset);
534void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 534void EmitImageSampleDrefExplicitLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
535 Register coord, Register dref, Register lod_lc, 535 const IR::Value& coord, ScalarF32 dref, ScalarF32 lod,
536 const IR::Value& offset); 536 const IR::Value& offset);
537void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord, 537void EmitImageGather(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord,
538 const IR::Value& offset, const IR::Value& offset2); 538 const IR::Value& offset, const IR::Value& offset2);