leudz / shipyard

Entity Component System focused on usability and flexibility.
Other
750 stars 45 forks source link

Update shader for metal #179

Closed Dispersia closed 1 year ago

Dispersia commented 1 year ago

Small PR to do a fix for mac/metal devices

Currently naga is outputting

struct vs_mainInput {
    metal::float2 position [[attribute(0)]];
    metal::float2 tex_coords [[attribute(1)]];
    metal::float2 position [[attribute(2)]];
};

which unfortunately breaks, so just renamed one of them.

leudz commented 1 year ago

Thanks!