CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT 結構
範本化協助程序結構,用來封裝子物件類型和子對象數據組,做為適合數據流描述的單一物件。
語法
struct CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT {
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT;
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const &i);
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT operator=(InnerStructType const& i);
operator InnerStructType() const;
};
成員
-
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT
-
建立新的未初始化CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT實例。
-
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const &i)
-
建立新的CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT範本實例,並以從 i 複製D3D12_PIPELINE_STATE_SUBOBJECT_TYPE和子對象數據的子物件類型初始化。 子物件類型和子對象數據類型都會分別指定為樣板參數 Type 和 InnerStructType。 如需詳細資訊,請參閱下方的。
-
operator=(InnerStructType const& i)
-
複製指派運算子。
-
operator InnerStructType() const
-
從 InnerStructType 樣本參數所指定的子物件資料類型隱含轉換。
備註
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT是定義如下的範本:
template <typename InnerStructType, D3D12_PIPELINE_STATE_SUBOBJECT_TYPE Type, typename DefaultArg = InnerStructType>
class alignas(void*) CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT
{
private:
D3D12_PIPELINE_STATE_SUBOBJECT_TYPE _Type;
InnerStructType _Inner;
public:
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT() : _Type(Type), _Inner(DefaultArg()) {}
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT(InnerStructType const& i) : _Type(Type), _Inner(i) {}
CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT& operator=(InnerStructType const& i) { _Inner = i; return *this; }
operator InnerStructType() const { return _Inner; }
};
template 參數 InnerStructType 會指定子對象數據類型;也就是要編碼為數據流的子對象詳細數據。 樣板參數 Type 會指定子物件類型;也就是樣板參數 InnerStructType 所指定的結構類型。 樣板參數 DefaultArg 會指定選擇性值,當對應的範本具現化實例是預設建構時,子對象數據會初始化為的選擇性值;例如,使用 CD3DX12_DEFAULT,預設建構以通用混合狀態預設值初始化的CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC。
以下是定義的範本具現化:
- CD3DX12_PIPELINE_STATE_STREAM_FLAGS
- CD3DX12_PIPELINE_STATE_STREAM_NODE_MASK
- CD3DX12_PIPELINE_STATE_STREAM_ROOT_SIGNATURE
- CD3DX12_PIPELINE_STATE_STREAM_INPUT_LAYOUT
- CD3DX12_PIPELINE_STATE_STREAM_IB_STRIP_CUT_VALUE
- CD3DX12_PIPELINE_STATE_STREAM_PRIMITIVE_TOPOLOGY
- CD3DX12_PIPELINE_STATE_STREAM_VS
- CD3DX12_PIPELINE_STATE_STREAM_GS
- CD3DX12_PIPELINE_STATE_STREAM_STREAM_OUTPUT
- CD3DX12_PIPELINE_STATE_STREAM_HS
- CD3DX12_PIPELINE_STATE_STREAM_DS
- CD3DX12_PIPELINE_STATE_STREAM_PS
- CD3DX12_PIPELINE_STATE_STREAM_CS
- CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC
- CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL
- CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1
- CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL_FORMAT
- CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER
- CD3DX12_PIPELINE_STATE_STREAM_RENDER_TARGET_FORMATS
- CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_DESC
- CD3DX12_PIPELINE_STATE_STREAM_SAMPLE_MASK
- CD3DX12_PIPELINE_STATE_STREAM_CACHED_PSO
CD3DX12_PIPELINE_STATE_STREAM_BLEND_DESC、CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL、CD3DX12_PIPELINE_STATE_STREAM_DEPTH_STENCIL1和CD3DX12_PIPELINE_STATE_STREAM_RASTERIZER結構會定義為使用 CD3DX12_DEFAULT,使用一般預設值來初始化其子對象數據。
需求
需求 | 值 |
---|---|
頁首 |
|