D3D12_HIT_GROUP_TYPE enumeration (d3d12.h)
Specifies the type of a raytracing hit group state subobject. Use a value from this enumeration with the D3D12_HIT_GROUP_DESC structure.
Syntax
typedef enum D3D12_HIT_GROUP_TYPE {
D3D12_HIT_GROUP_TYPE_TRIANGLES = 0,
D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1
} ;
Constants
D3D12_HIT_GROUP_TYPE_TRIANGLES Value: 0 The hit group uses a list of triangles to calculate ray hits. Hit groups that use triangles can’t contain an intersection shader. |
D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE Value: 0x1 The hit group uses a procedural primitive within a bounding box to calculate ray hits. Hit groups that use procedural primitives must contain an intersection shader. |
Requirements
Requirement | Value |
---|---|
Header | d3d12.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for