CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT class

A helper class for creating a subobject-to-exports association state subobject.

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

Syntax

class CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT
{
    CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT() noexcept;
    CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC& ContainingStateObject);
    void SetSubobjectToAssociate(const D3D12_STATE_SUBOBJECT& SubobjectToAssociate) noexcept;
    void AddExport(LPCWSTR Export);
    template<size_t N> void AddExports(LPCWSTR(&Exports)[N]);
    void AddExports(const LPCWSTR* Exports, UINT N);
    D3D12_STATE_SUBOBJECT_TYPE Type() const noexcept override;
    operator const D3D12_STATE_SUBOBJECT& () const noexcept;
    operator const D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION& () const noexcept;
};

Members

CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT

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

CD3DX12_SUBOBJECT_TO_EXPORTS_ASSOCIATION_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC&)

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

SetSubobjectToAssociate(const D3D12_STATE_SUBOBJECT&)

Function for setting the subobject to associate in the form of a D3D12_STATE_SUBOBJECT passed as the parameter.

AddExport(LPCWSTR)

Adds an export to associate.

AddExports(LPCWSTR(&)[N]);

Adds an array of exports to associate. Template parameter N specifies the number of elements in the array.

AddExports(const LPCWSTR*, UINT)

Defines an array of N exports to associate.

Type

Retrieves the type of the subobject, represented by the D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION 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_SUBOBJECT_TO_EXPORTS_ASSOCIATION&

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

Requirements

Requirement Value
Header D3dx12.h

See also