Skip to content

Commit

Permalink
Fix D3D12 WriteToSubresource size calculation (#1699)
Browse files Browse the repository at this point in the history
The current WriteToSubresource size calculation may not work correctly
when either the DstSubresource parameter is greater than 0 or the
subresource is a texture with a block compressed format.

The size calculation was updated to handle these cases using texture
utility code that was originally added for D3D11, where it is used for
the D3D11 UpdateSubresource and WriteToSubresource size calculations.
  • Loading branch information
dgraves authored Sep 6, 2024
1 parent aff347e commit 9c295b4
Show file tree
Hide file tree
Showing 2 changed files with 339 additions and 170 deletions.
Loading

0 comments on commit 9c295b4

Please sign in to comment.