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

> 定义指定生命周期跟踪对象的生命周期状态的常量。

定义指定生命周期跟踪对象的生命周期状态的常量。

## 语法

```cpp theme={null}
typedef enum D3D12_LIFETIME_STATE
{
    D3D12_LIFETIME_STATE_IN_USE = 0,
    D3D12_LIFETIME_STATE_NOT_IN_USE = 0
} D3D12_LIFETIME_STATE
```

## 常量

| 常量 | 说明 |
| - | - |
| D3D12\_LIFETIME\_STATE\_IN\_USE | 指定生命周期跟踪对象正在使用中。 |
| D3D12\_LIFETIME\_STATE\_NOT\_IN\_USE | 指定生命周期跟踪对象未在使用中。 |

## 注解

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅


## Related topics

- [LifetimeStateUpdated](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12lifetimeowner/methods/id3d12lifetimeowner_lifetimestateupdated_public.md)
- [ID3D12LifetimeOwner](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12lifetimeowner/id3d12lifetimeowner_public.md)
- [ID3D12LifetimeTracker](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12lifetimetracker/id3d12lifetimetracker_public.md)
- [D3D12_GRAPHICS_STATES](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_graphics_states_public.md)
- [D3D12_TRI_STATE](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_tri_state_public.md)
