> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_PLACED_SUBRESOURCE_FOOTPRINT

> 配置されたサブリソースのフットプリントを、オフセットと D3D12_SUBRESOURCE_FOOTPRINT を含めて記述します。

配置されたサブリソースのフットプリントを、オフセットと D3D12\_SUBRESOURCE\_FOOTPRINT を含めて記述します。

## 構文

```cpp theme={null}
typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT
{
    UINT64 Offset;
    D3D12_SUBRESOURCE_FOOTPRINT Footprint;
} D3D12_PLACED_SUBRESOURCE_FOOTPRINT
```

### メンバー

*Offset*\
型: UINT64

親リソース内でのサブリソースのオフセット (バイト単位)。
親リソースの先頭からこのサブリソースまでのオフセットです。

*Footprint*\
型: D3D12\_SUBRESOURCE\_FOOTPRINT

サブリソースの形式、幅、高さ、深さ、および行ピッチを [D3D12\_SUBRESOURCE\_FOOTPRINT](/reference/graphics/d3d12/structs/d3d12_subresource_footprint_public) 構造体として表現したものです。

## 解説

この構造体は [D3D12\_TEXTURE\_COPY\_LOCATION](/reference/graphics/d3d12/structs/d3d12_texture_copy_location_public) 構造体と、[ID3D12Device::GetCopyableFootprints](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getcopyablefootprints_public) で使用されます。

フットプリント構造体で参照されるすべてのデータは、親リソースの境界内に収まる必要があります。構造体を [GetCopyableFootprints](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getcopyablefootprints_public) を使用して入力すると、<i>pTotalBytes</i> 出力フィールドがリソースの必要なサイズを示します。

この構造体は、多数のヘルパー関数でも使用されます ([D3D12 のヘルパー構造体および関数](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/helper-structures-and-functions-for-d3d12) を参照)。

テクスチャをコピーする場合は、この構造体を [D3D12\_TEXTURE\_COPY\_LOCATION](/reference/graphics/d3d12/structs/d3d12_texture_copy_location_public) と共に使用します。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h\
**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib\
**サポートされるプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

[コア構造体](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_SUBRESOURCE_FOOTPRINT](/ja-jp/reference/graphics/d3d12/structs/d3d12_subresource_footprint_public.md)
- [D3D12_TEXTURE_COPY_LOCATION](/ja-jp/reference/graphics/d3d12/structs/d3d12_texture_copy_location_public.md)
- [GetCopyableFootprints](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getcopyablefootprints_public.md)
- [D3D12_TEXTURE_COPY_TYPE](/ja-jp/reference/graphics/d3d12/enums/d3d12_texture_copy_type_public.md)
- [D3D12_SUBRESOURCE_DATA](/ja-jp/reference/graphics/d3d12/structs/d3d12_subresource_data_public.md)
