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

> Associates a subobject defined directly in a state object with shader exports.

Associates a subobject defined directly in a state object with shader exports.

## Syntax

```cpp theme={null}
typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION
{
    const D3D12_STATE_SUBOBJECT  pSubobjectToAssociate;
    UINT NumExports;
    LPCWSTR  pExports;
} D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION
```

### Members

*pSubobjectToAssociate*\
Type: const D3D12\_STATE\_SUBOBJECT \*

Pointer to the subobject in current state object to define an association to.

*NumExports*\
Type: UINT

Size of the <i>pExports</i> array.  If 0, this is being explicitly defined as a default association.  Another way to define a default association is to omit this subobject association for that subobject completely.

*pExports*\
Type: LPCWSTR \*

The array of exports with which the subobject is associated.

## Remarks

Depending on the flags specified in the optional [D3D12\_STATE\_OBJECT\_CONFIG](/reference/graphics/d3d12/structs/d3d12_state_object_config_public) subobject for opting into cross linkage, the exports being associated don't necessarily have to be present in the current state object, or one that has been seen yet, to be resolved later, on raytracing pipeline state object (RTPSO) creation for example.

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


## Related topics

- [D3D12_STATE_SUBOBJECT_TYPE](/reference/graphics/d3d12/enums/d3d12_state_subobject_type_public.md)
- [D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION](/reference/graphics/d3d12/structs/d3d12_dxil_subobject_to_exports_association_public.md)
- [D3D12_EXPORT_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_export_desc_public.md)
- [D3D12_EXPORT_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_export_flags_public.md)
- [D3D12_STATE_SUBOBJECT](/reference/graphics/d3d12/structs/d3d12_state_subobject_public.md)
