Skip to content

Conversation

@alpakaDurumi
Copy link
Contributor

The current explanation for BaseOffset parameter is ambiguous. It is described as The offset, in bytes, to the resource., which can be incorrectly interpreted as an offset of the resource represented by the pResourceDesc parameter.

In the function, BaseOffset is not an offset for the resource. Instead, it is a value that is simply added to the Offset of each subresource layout in the output pLayouts array.

For reference, see d3dx12.h version of GetCopyableFootprints : https://github.com/microsoft/DirectX-Headers/blob/18d5bfe96452667b201fd26aa25c6c305ae57e07/include/directx/d3dx12_resource_helpers.h#L520

@alpakaDurumi
Copy link
Contributor Author

@microsoft-github-policy-service agree

@prmerger-automator
Copy link

@alpakaDurumi : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@stevewhims stevewhims merged commit bd75880 into MicrosoftDocs:docs Nov 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants