Skip to content

Commit 1d34eca

Browse files
authored
Merge pull request #2144 from AdamJMiles/patch-7
Clarify offset alignment requirement for subresource
2 parents 274169f + b28656e commit 1d34eca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk-api-src/content/d3d12/ns-d3d12-d3d12_placed_subresource_footprint.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ Describes the footprint of a placed subresource, including the offset and the D3
5757
### -field Offset
5858

5959
The offset of the subresource within the parent resource, in bytes.
60-
The offset between the start of the parent resource and this subresource.
60+
The offset between the start of the parent resource and this subresource.
61+
62+
This value must be aligned to D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT (512) unless <a href="/windows/win32/api/d3d12/ns-d3d12-d3d12_feature_data_d3d12_options13">D3D12_FEATURE_DATA_D3D12_OPTIONS13::UnrestrictedBufferTextureCopyPitchSupported</a> is TRUE.
6163

6264
### -field Footprint
6365

@@ -78,4 +80,4 @@ When copying textures, use this structure along with <a href="/windows/desktop/a
7880

7981
## -see-also
8082

81-
<a href="/windows/desktop/direct3d12/direct3d-12-structures">Core Structures</a>
83+
<a href="/windows/desktop/direct3d12/direct3d-12-structures">Core Structures</a>

0 commit comments

Comments
 (0)