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

# D3D12_TEXTURE_COPY_LOCATION

> Describes a portion of a texture for the purpose of texture copies.

Describes a portion of a texture for the purpose of texture copies.

## Syntax

```cpp theme={null}
typedef struct D3D12_TEXTURE_COPY_LOCATION
{
    ID3D12Resource  pResource;
    D3D12_TEXTURE_COPY_TYPE Type;
    D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
    UINT SubresourceIndex;
} D3D12_TEXTURE_COPY_LOCATION
```

### Members

*pResource*\
Type: ID3D12Resource \*

Specifies the resource which will be used for the copy operation. When **Type** is D3D12\_TEXTURE\_COPY\_TYPE\_PLACED\_FOOTPRINT, **pResource** must point to a buffer resource. When **Type** is D3D12\_TEXTURE\_COPY\_TYPE\_SUBRESOURCE\_INDEX, **pResource** must point to a texture resource.

*Type*\
Type: D3D12\_TEXTURE\_COPY\_TYPE

Specifies which type of resource location this is: a subresource of a texture, or a description of a texture layout which can be applied to a buffer.
This [D3D12\_TEXTURE\_COPY\_TYPE](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_texture_copy_type_public.md) enum indicates which union member to use.

*PlacedFootprint*\
Type: D3D12\_PLACED\_SUBRESOURCE\_FOOTPRINT

Specifies a texture layout, with offset, dimensions, and pitches, for the hardware to understand how to treat a section of a buffer resource as a multi-dimensional texture.
To fill-in the correct data for a [CopyTextureRegion](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytextureregion_public.md) call,
see [D3D12\_PLACED\_SUBRESOURCE\_FOOTPRINT](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_placed_subresource_footprint_public.md).

*SubresourceIndex*\
Type: UINT

Specifies the index of the subresource of an arrayed, mip-mapped, or planar texture should be used for the copy operation.

## Remarks

Use this structure with [CopyTextureRegion](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytextureregion_public.md).

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[CD3DX12\_TEXTURE\_COPY\_LOCATION](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-texture-copy-location)

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

[D3D12\_PLACED\_SUBRESOURCE\_FOOTPRINT](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_placed_subresource_footprint_public.md)


## Related topics

- [D3D12_TEXTURE_COPY_TYPE](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_texture_copy_type_public.md)
- [D3D12_PLACED_SUBRESOURCE_FOOTPRINT](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_placed_subresource_footprint_public.md)
- [D3D12_TILE_COPY_FLAGS](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_tile_copy_flags_public.md)
- [D3D12_TEXTURE_BARRIER (XBOX Series consoles)](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_texture_barrier_public.md)
- [D3D12_VIEW_INSTANCE_LOCATION](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_view_instance_location_public.md)
