diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-03-28 21:25:08 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | be3e94ae55184933e0f1f5fb55698513f7936382 (patch) | |
tree | 87dcf2bafc3da1966470de424f5f14bf662d1aa1 /src/shader_recompiler/backend | |
parent | shader,spirv: Implement ImageQueryLod. (diff) | |
download | yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar.gz yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar.bz2 yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar.lz yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar.xz yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.tar.zst yuzu-be3e94ae55184933e0f1f5fb55698513f7936382.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp index 2cd6b38c4..9f8fe2603 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp @@ -297,8 +297,8 @@ Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& i Id EmitImageQueryLod(EmitContext& ctx, IR::Inst*, const IR::Value& index, Id coords) { const Id zero{ctx.f32_zero_value}; - const Id image{TextureImage(ctx, index)}; - return ctx.OpCompositeConstruct(ctx.F32[4], ctx.OpImageQueryLod(ctx.F32[2], image, coords), + const Id sampler{Texture(ctx, index)}; + return ctx.OpCompositeConstruct(ctx.F32[4], ctx.OpImageQueryLod(ctx.F32[2], sampler, coords), zero, zero); } |