以下是该枚举的定义:
typedef enum D3D12_STATE_SUBOBJECT_TYPE {
D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0,
D3D12_STATE_SUBOBJECT_TYPE_PIPELINE_LIBRARY = 1,
D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 2,
D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 3,
D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 4,
D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 5,
D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 6,
D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 7,
D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 8,
D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = 9
} D3D12_STATE_SUBOBJECT_TYPE;
这个枚举定义了不同类型的状态对象子对象,包括:
- D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG:状态对象配置。
- D3D12_STATE_SUBOBJECT_TYPE_PIPELINE_LIBRARY:管线库。
- D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY:DXIL(DirectX Intermediate Language)库。
- D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION:现有的状态对象集合。
- D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION:导出关联子对象。
- D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION:DXIL 导出关联子对象。
- D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG:射线追踪着色器配置。
- D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG:射线追踪管线配置。
- D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP:射线追踪命中组。
D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID 是一个占位符,表示当前有效的状态对象子对象类型的最大值。
这个枚举常用于描述状态对象的子对象的类型,以便在创建状态对象时提供正确的配置。
转载请注明出处:http://www.zyzy.cn/article/detail/26113/Win32 API/D3d12.h/D3D12_STATE_SUBOBJECT_TYPE