Metal: vertex descriptor is built without using the location information #2324
Labels
backend: Metal
client: blocker
blocker issue for a known client
difficulty: easy
platform: OSX
status: ready for work
type: bug
value: high
This is the code that creates Metal vertex descriptors:
gfx/src/backend/metal/src/device.rs
Lines 1011 to 1014 in a571ae5
The expected behavior is that the location in the vertex shader matches the location in the attributes array; instead this code fills the array from 0 to count-1, which doesn't work for vertex shaders that have 3 input attributes with locations 0, 2, 4. The array index should instead use VkVertexInputAttributeDescription::location.
The text was updated successfully, but these errors were encountered: