Skip to content

Commit

Permalink
amend! fix(msl-out): emit and init struct member padding always
Browse files Browse the repository at this point in the history
fix(msl-out): emit and init `struct` member padding always

Previously, implicit padding members of `struct`s were suppressed from
structure definitions in Metal output if they had a binding specified
for them (i.e., `@location(0)`). This padding is, however, is necessary
for correct access of member fields passed into shaders by uniform and
storage buffers. Unconditionally emit padding members for `struct`s.

Resolves
[`gfx-rs/wgpu`#4701](#4701).
  • Loading branch information
ErichDonGubler committed Nov 21, 2023
1 parent 6f0a0b8 commit 2889a1a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 2889a1a

Please sign in to comment.