CD3DX12_HIT_GROUP_SUBOBJECT class

A helper class for creating a hit group state subobject.

For more info about the D3DX12 State Object Creation Helpers, see CD3DX12_STATE_OBJECT_DESC.

Syntax

class CD3DX12_HIT_GROUP_SUBOBJECT
{
    CD3DX12_HIT_GROUP_SUBOBJECT() noexcept;
    CD3DX12_HIT_GROUP_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC& ContainingStateObject);
    void SetHitGroupExport(LPCWSTR exportName);
    void SetHitGroupType(D3D12_HIT_GROUP_TYPE Type) noexcept;
    void SetAnyHitShaderImport(LPCWSTR importName);
    void SetClosestHitShaderImport(LPCWSTR importName);
    void SetIntersectionShaderImport(LPCWSTR importName);
    D3D12_STATE_SUBOBJECT_TYPE Type() const noexcept override;
    operator const D3D12_STATE_SUBOBJECT& () const noexcept { return *m_pSubobject; }
    operator const D3D12_HIT_GROUP_DESC& () const noexcept { return m_Desc; }
};

Members

CD3DX12_HIT_GROUP_SUBOBJECT

Default constructor. Creates a new, default-initialized, instance of a CD3DX12_HIT_GROUP_SUBOBJECT.

CD3DX12_HIT_GROUP_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC&)

Constructor that creates a new instance of a CD3DX12_HIT_GROUP_SUBOBJECT initialized with the contents of a CD3DX12_STATE_OBJECT_DESC object.

SetHitGroupExport(LPCWSTR)

Function for setting the name of the hit group.

SetHitGroupType(D3D12_HIT_GROUP_TYPE)

Function for setting a value from the D3D12_HIT_GROUP_TYPE enumeration specifying the type of the hit group.

SetAnyHitShaderImport(LPCWSTR)

Function for optionally setting the name of the any-hit shader associated with the hit group.

SetClosestHitShaderImport(LPCWSTR)

Function for optionally setting the name of the closest-hit shader associated with the hit group.

SetIntersectionShaderImport(LPCWSTR)

Function for optionally setting the name of optional name of the intersection shader associated with the hit group.

Type

Retrieves the type of the subobject, represented by the D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP constant.

operator const D3D12_STATE_SUBOBJECT&

Conversion operator that returns a reference to a constant D3D12_STATE_SUBOBJECT object describing the state object.

operator const D3D12_HIT_GROUP_DESC&

Conversion operator that returns a reference to a constant D3D12_HIT_GROUP_DESC object describing the state object.

Requirements

Requirement Value
Header D3dx12.h

See also