Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions impeller/renderer/vertex_descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ bool VertexDescriptor::SetStageInputs(
for (size_t i = 0; i < count; i++) {
inputs_.emplace_back(*stage_inputs[i]);
}
// TODO(jonahwilliams): vulkan shader stage needed sorting too. Remove once
// autogenerated headers include offset information.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please link an issue tracking this work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

// See: https://github.com/flutter/flutter/issues/116168
auto compare_locations = [](ShaderStageIOSlot a, ShaderStageIOSlot b) {
return a.location < b.location;
};
std::sort(inputs_.begin(), inputs_.end(), compare_locations);

return true;
}

Expand Down