mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
nir/lower_uniforms_to_ubo: set explicit_binding on uniform_0
this variable is always bound to buffer index 0, so the binding info here is actually useful Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7935>
This commit is contained in:
parent
a5bd2b95ef
commit
652e51e1f3
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ nir_lower_uniforms_to_ubo(nir_shader *shader, int multiplier)
|
|||
nir_variable *ubo = nir_variable_create(shader, nir_var_mem_ubo, type,
|
||||
"uniform_0");
|
||||
ubo->data.binding = 0;
|
||||
ubo->data.explicit_binding = 1;
|
||||
|
||||
struct glsl_struct_field field = {
|
||||
.type = type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue