CD3DX12_DXIL_LIBRARY_SUBOBJECT class
A helper class for creating a DXIL library state subobject.
For more info about the D3DX12 State Object Creation Helpers, see CD3DX12_STATE_OBJECT_DESC.
Syntax
class CD3DX12_DXIL_LIBRARY_SUBOBJECT
{
CD3DX12_DXIL_LIBRARY_SUBOBJECT() noexcept;
CD3DX12_DXIL_LIBRARY_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC&);
void SetDXILLibrary(const D3D12_SHADER_BYTECODE* pCode) noexcept;
void DefineExport(
LPCWSTR Name,
LPCWSTR ExportToRename = nullptr,
D3D12_EXPORT_FLAGS Flags = D3D12_EXPORT_FLAG_NONE);
template<size_t N> void DefineExports(LPCWSTR(&Exports)[N]);
void DefineExports(const LPCWSTR* Exports, UINT N);
D3D12_STATE_SUBOBJECT_TYPE Type() const noexcept;
operator const D3D12_STATE_SUBOBJECT& () const noexcept;
operator const D3D12_DXIL_LIBRARY_DESC& () const noexcept;
};
Members
CD3DX12_DXIL_LIBRARY_SUBOBJECT
Default constructor. Creates a new, default-initialized, instance of a CD3DX12_DXIL_LIBRARY_SUBOBJECT.
CD3DX12_DXIL_LIBRARY_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC&)
Constructor that creates a new instance of a CD3DX12_DXIL_LIBRARY_SUBOBJECT initialized with the contents of a CD3DX12_STATE_OBJECT_DESC object.
SetDXILLibrary(const D3D12_SHADER_BYTECODE*)
Function for setting the DXIL library in the form of the pointer to a D3D12_SHADER_BYTECODE passed as the parameter.
DefineExport(LPCWSTR, LPCWSTR = nullptr, D3D12_EXPORT_FLAGS)
Defines a symbol exported from the subobject. Takes a D3D12_EXPORT_FLAGS as an optional parameter.
DefineExports(LPCWSTR(&)[N]);
Defines an array of N symbols exported from the subobject. Template parameter N specifies the number of elements in the array.
DefineExports(const LPCWSTR*, UINT)
Defines an array of symbols exported from the subobject.
Type
Retrieves the type of the subobject, represented by the D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY 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_DXIL_LIBRARY_DESC&
Conversion operator that returns a reference to a constant D3D12_DXIL_LIBRARY_DESC object describing the state object.
Remarks
Requirements
Requirement | Value |
---|---|
Header | D3dx12.h |