A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gfx-rs/gfx/issues/1352 below:

[ll][d3d12] Buffer to Image copy alignment · Issue #1352 · gfx-rs/gfx · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4