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

> Describes the transition between usages of two different resources that have mappings into the same heap.

Describes the transition between usages of two different resources that have mappings into the same heap.

## Syntax

```cpp theme={null}
typedef struct D3D12_RESOURCE_ALIASING_BARRIER
{
    ID3D12Resource  pResourceBefore;
    ID3D12Resource  pResourceAfter;
} D3D12_RESOURCE_ALIASING_BARRIER
```

### Members

*pResourceBefore*\
Type: ID3D12Resource \*

A pointer to the [ID3D12Resource](/reference/graphics/d3d12_xs/interfaces/ID3D12Resource/id3d12resource_xs) object that represents the before resource used in the transition.

*pResourceAfter*\
Type: ID3D12Resource \*

A pointer to the [ID3D12Resource](/reference/graphics/d3d12_xs/interfaces/ID3D12Resource/id3d12resource_xs) object that represents the after resource used in the transition.

## Remarks

This structure is a member of the [D3D12\_RESOURCE\_BARRIER](/reference/graphics/d3d12/structs/d3d12_resource_barrier_public) structure.

Both the before and the after resources can be specified or one or both resources can be **NULL**, which indicates that any placed or reserved resource could cause aliasing.

Refer to the usage models described in [CreatePlacedResource](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createplacedresource_public).

## 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 Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

[Using Resource Barriers to Synchronize Resource States in Direct3D 12](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12)


## Related topics

- [D3D12_RESOURCE_BARRIER](/reference/graphics/d3d12/structs/d3d12_resource_barrier_public.md)
- [CreatePlacedResource](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createplacedresource_public.md)
- [D3D12_RESOURCE_BARRIER_TYPE](/reference/graphics/d3d12/enums/d3d12_resource_barrier_type_public.md)
- [D3D12_RESOURCE_TRANSITION_BARRIER](/reference/graphics/d3d12/structs/d3d12_resource_transition_barrier_public.md)
- [D3D12_RESOURCE_UAV_BARRIER](/reference/graphics/d3d12/structs/d3d12_resource_uav_barrier_public.md)
