mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
comp: More replacing of binding indices with variables
This commit is contained in:
parent
2e7451ca5e
commit
bc7a948975
|
@ -348,17 +348,17 @@ comp_distortion_init_pipeline(struct comp_distortion *d,
|
||||||
switch (d->distortion_model) {
|
switch (d->distortion_model) {
|
||||||
case XRT_DISTORTION_MODEL_MESHUV:
|
case XRT_DISTORTION_MODEL_MESHUV:
|
||||||
// clang-format off
|
// clang-format off
|
||||||
vertex_input_attribute_descriptions[0].binding = 0;
|
vertex_input_attribute_descriptions[0].binding = d->render_texture_target_binding;
|
||||||
vertex_input_attribute_descriptions[0].location = 0;
|
vertex_input_attribute_descriptions[0].location = 0;
|
||||||
vertex_input_attribute_descriptions[0].format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
vertex_input_attribute_descriptions[0].format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||||
vertex_input_attribute_descriptions[0].offset = 0;
|
vertex_input_attribute_descriptions[0].offset = 0;
|
||||||
|
|
||||||
vertex_input_attribute_descriptions[1].binding = 0;
|
vertex_input_attribute_descriptions[1].binding = d->render_texture_target_binding;
|
||||||
vertex_input_attribute_descriptions[1].location = 1;
|
vertex_input_attribute_descriptions[1].location = 1;
|
||||||
vertex_input_attribute_descriptions[1].format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
vertex_input_attribute_descriptions[1].format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||||
vertex_input_attribute_descriptions[1].offset = 16;
|
vertex_input_attribute_descriptions[1].offset = 16;
|
||||||
|
|
||||||
vertex_input_binding_description.binding = 0;
|
vertex_input_binding_description.binding = d->render_texture_target_binding;
|
||||||
vertex_input_binding_description.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
|
vertex_input_binding_description.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
|
||||||
vertex_input_binding_description.stride = d->mesh.stride;
|
vertex_input_binding_description.stride = d->mesh.stride;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue