gl_graphics_pipeline: Add downscale factor to shader uniforms
This commit is contained in:
parent
2182d25750
commit
f086c82e1f
4 changed files with 19 additions and 5 deletions
|
@ -393,6 +393,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
|
|||
DefineGenericOutput(index, program.invocations);
|
||||
}
|
||||
}
|
||||
if (info.uses_rescaling_uniform) {
|
||||
header += "layout(location=0) uniform float down_factor;";
|
||||
}
|
||||
DefineConstantBuffers(bindings);
|
||||
DefineStorageBuffers(bindings);
|
||||
SetupImages(bindings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue