> ## 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_TILE_COPY_FLAGS

> Specifies how to copy a tile.

Specifies how to copy a tile.

## Syntax

```cpp theme={null}
typedef enum D3D12_TILE_COPY_FLAGS
{
    D3D12_TILE_COPY_FLAG_NONE = 0,
    D3D12_TILE_COPY_FLAG_NO_HAZARD = 1,
    D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 2,
    D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 4
} D3D12_TILE_COPY_FLAGS
```

## Constants

| Constant | Description |
| - | - |
| D3D12\_TILE\_COPY\_FLAG\_NONE | No tile-copy flags are specified. |
| D3D12\_TILE\_COPY\_FLAG\_NO\_HAZARD | Indicates that the GPU isn't currently referencing any of the portions of destination memory being written. |
| D3D12\_TILE\_COPY\_FLAG\_LINEAR\_BUFFER\_TO\_SWIZZLED\_TILED\_RESOURCE | Indicates that the [ID3D12GraphicsCommandList::CopyTiles](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md) operation involves copying a linear buffer to a swizzled tiled resource. This means to copy tile data from the specified buffer location, reading tiles sequentially, to the specified tile region (in x,y,z order if the region is a box), swizzling to optimal hardware memory layout as needed. In this **ID3D12GraphicsCommandList::CopyTiles** call, you specify the source data with the  *pBuffer* parameter and the destination with the *pTiledResource* parameter. |
| D3D12\_TILE\_COPY\_FLAG\_SWIZZLED\_TILED\_RESOURCE\_TO\_LINEAR\_BUFFER | Indicates that the [ID3D12GraphicsCommandList::CopyTiles](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md) operation involves copying a swizzled tiled resource to a linear buffer. This means to copy tile data from the tile region, reading tiles sequentially (in x,y,z order if the region is a box), to the specified buffer location, deswizzling to linear memory layout as needed. In this **ID3D12GraphicsCommandList::CopyTiles** call, you specify the source data with the *pTiledResource* parameter and the destination with the  *pBuffer* parameter. |

## Remarks

This enum is used by the [CopyTiles](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md) method.

## 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

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


## Related topics

- [CopyTiles](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
- [D3D12_TILE_MAPPING_FLAGS](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_tile_mapping_flags_public.md)
- [D3D12_TILE_RANGE_FLAGS](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_tile_range_flags_public.md)
- [D3D12_TILE_REGION_SIZE](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_tile_region_size_public.md)
- [D3D12_COMMAND_LIST_SUPPORT_FLAGS](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_command_list_support_flags_public.md)
