Closed
Description
D3D12 appears to impose harsh alignment restrictions on buffer/image copies: 512 for the copy chunk, 256 for each row of texture.
I tried to work around the second limitation by copying each row independently but still faced the first one that doesn't seem to be avoidable.
I believe the most reasonable (and painless) way to proceed would be to expose the alignment limitations by the backend capabilities, check for them at run-time, and respect those all the way through our CPU stack that does the actual uploading. Thus, for example, image
crate would need a parameter specifying what alignment per row it needs to keep (cc @bvssvni ).
Note: this is a blocker for pretty much anything, including our trianglell
example.
cc @msiglreith