mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-01 12:58:59 +02:00
[revert] lambda enemy of da world
This commit is contained in:
parent
c17847633b
commit
d3d94d38b6
1 changed files with 2 additions and 2 deletions
|
|
@ -866,11 +866,11 @@ Id EmitImageQueryDimensions(EmitContext& ctx, IR::Inst* inst, const IR::Value& i
|
||||||
const Id query_type{ctx.U32[std::max(1u, query_components)]};
|
const Id query_type{ctx.U32[std::max(1u, query_components)]};
|
||||||
const Id size = uses_lod ? ctx.OpImageQuerySizeLod(query_type, image, lod)
|
const Id size = uses_lod ? ctx.OpImageQuerySizeLod(query_type, image, lod)
|
||||||
: ctx.OpImageQuerySize(query_type, image);
|
: ctx.OpImageQuerySize(query_type, image);
|
||||||
const auto extract = [&](u32 component_index) -> Id {
|
const auto extract = [&](u32 index) -> Id {
|
||||||
if (query_components == 1) {
|
if (query_components == 1) {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
return ctx.OpCompositeExtract(ctx.U32[1], size, component_index);
|
return ctx.OpCompositeExtract(ctx.U32[1], size, index);
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (info.type) {
|
switch (info.type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue