mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 22:07:56 -05:00
glsl/glasm: Pass and use scaling parameters in shaders
This commit is contained in:
committed by
Fernando Sahmkow
parent
4a512d6827
commit
cfeb161c7e
@ -616,8 +616,8 @@ void EmitIsTextureScaled(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
|
||||
if (!index.IsImmediate()) {
|
||||
throw NotImplementedException("Non-constant texture rescaling");
|
||||
}
|
||||
UNIMPLEMENTED();
|
||||
ctx.AddU1("{}=true;", inst);
|
||||
const u32 image_index{index.U32()};
|
||||
ctx.AddU1("{}=(ftou(scaling.x)&{})!=0;", inst, 1u << image_index);
|
||||
}
|
||||
|
||||
void EmitBindlessImageSampleImplicitLod(EmitContext&) {
|
||||
|
Reference in New Issue
Block a user