glsl/glasm: Pass and use scaling parameters in shaders
This commit is contained in:
parent
4a512d6827
commit
cfeb161c7e
9 changed files with 51 additions and 28 deletions
|
@ -394,7 +394,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
|||
}
|
||||
}
|
||||
if (info.uses_rescaling_uniform) {
|
||||
header += "layout(location=0) uniform float down_factor;";
|
||||
header += "layout(location=0) uniform vec4 scaling;";
|
||||
}
|
||||
DefineConstantBuffers(bindings);
|
||||
DefineStorageBuffers(bindings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue