> ## 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_HIT_GROUP_DESC (XBOX Series consoles)

> Describes a raytracing hit group state subobject that can be included in a state object.

Describes a raytracing hit group state subobject that can be included in a state object.

## Syntax

```cpp theme={null}
typedef struct D3D12_HIT_GROUP_DESC
{
    LPCWSTR HitGroupExport;
    D3D12_HIT_GROUP_TYPE Type;
    LPCWSTR AnyHitShaderImport;
    LPCWSTR ClosestHitShaderImport;
    LPCWSTR IntersectionShaderImport;
} D3D12_HIT_GROUP_DESC
```

### Members

*HitGroupExport*\
Type: LPCWSTR

The name of the hit group.

*Type*\
Type: D3D12\_HIT\_GROUP\_TYPE

A value from the [D3D12\_HIT\_GROUP\_TYPE](/reference/graphics/d3d12/enums/d3d12_hit_group_type_public) enumeration specifying the type of the hit group.

*AnyHitShaderImport*\
Type: LPCWSTR

Optional name of the any-hit shader associated with the hit group. This field can be used with all hit group types.

*ClosestHitShaderImport*\
Type: LPCWSTR

Optional name of the closest-hit shader associated with the hit group. This field can be used with all hit group types.

*IntersectionShaderImport*\
Type: LPCWSTR

Optional name of the intersection shader associated with the hit group.  This field can only be used with hit groups of type procedural primitive.

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles


## Related topics

- [D3D12_HIT_GROUP_TYPE (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_hit_group_type_public.md)
- [D3D12_RAYTRACING_INSTANCE_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_raytracing_instance_desc_public.md)
- [D3D12_DISPATCH_RAYS_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_dispatch_rays_desc_public.md)
- [D3D12_RAYTRACING_GEOMETRY_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
- [D3D12_EXPORT_DESC (XBOX Series consoles)](/reference/graphics/d3d12/structs/d3d12_export_desc_public.md)
