maybe add opscode for compat

This commit is contained in:
ryana 2026-04-29 05:57:15 +08:00
parent 14d05bf41f
commit cffd393208
No known key found for this signature in database
GPG key ID: 1B0D2A9833DC2348

View file

@ -255,7 +255,9 @@ Id TextureImage(EmitContext& ctx, IR::TextureInstInfo info, const IR::Value& ind
idx.Decorate(ctx, ptr);
const Id object{ctx.OpLoad(def.sampled_type, ptr)};
idx.Decorate(ctx, object);
return ctx.OpImage(def.image_type, object);
const Id image{ctx.OpImage(def.image_type, object)};
idx.Decorate(ctx, image);
return image;
}
return ctx.OpImage(def.image_type, ctx.OpLoad(def.sampled_type, def.id));
}