mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-15 02:57:57 -05:00
glsl/glasm: Pass and use scaling parameters in shaders
This commit is contained in:
committed by
Fernando Sahmkow
parent
4a512d6827
commit
cfeb161c7e
@ -612,8 +612,9 @@ void EmitIsTextureScaled(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
|
||||
if (!index.IsImmediate()) {
|
||||
throw NotImplementedException("Non-constant texture rescaling");
|
||||
}
|
||||
UNIMPLEMENTED();
|
||||
ctx.Add("MOV.S {}.x,-1;", inst);
|
||||
ctx.Add("AND.U RC.x,scaling[0].x,{};"
|
||||
"SNE.S {},RC.x,0;",
|
||||
1u << index.U32(), ctx.reg_alloc.Define(inst));
|
||||
}
|
||||
|
||||
void EmitImageAtomicIAdd32(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord,
|
||||
|
Reference in New Issue
Block a user