CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT 類別
用來建立子物件的協助程式類別,定義狀態物件的一般屬性。
如需 D3DX12 狀態物件建立協助程式的詳細資訊,請參閱 CD3DX12_STATE_OBJECT_DESC。
語法
class CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT
{
public:
CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT() noexcept;
CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC& ContainingStateObject);
void SetFlags(D3D12_STATE_OBJECT_FLAGS Flags) noexcept;
D3D12_STATE_SUBOBJECT_TYPE Type() const noexcept override;
operator const D3D12_STATE_SUBOBJECT& () const noexcept;
operator const D3D12_STATE_OBJECT_CONFIG& () const noexcept;
};
成員
CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT
預設建構函式。 建立CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT的新預設初始化實例。
CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT(CD3DX12_STATE_OBJECT_DESC&)
建構函式,這個建構函式會使用 CD3DX12_STATE_OBJECT_DESC物件的內容初始化CD3DX12_STATE_OBJECT_CONFIG_SUBOBJECT的新實例。
SetFlags(D3D12_STATE_OBJECT_FLAGS)
函式,可透過 D3D12_STATE_OBJECT_FLAGS 物件指定狀態物件的需求。
Type
擷取由 D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG 常數表示的子物件類型。
operator const D3D12_STATE_SUBOBJECT&
轉換運算子,傳回描述狀態物件之常數 D3D12_STATE_SUBOBJECT 物件的參考。
operator const D3D12_STATE_OBJECT_CONFIG&
轉換運算子,傳回描述狀態物件之常數 D3D12_STATE_OBJECT_CONFIG 物件的參考。
規格需求
需求 | 值 |
---|---|
標頭 | D3dx12.h |