CD3DX12_ROOT_SIGNATURE_DESC 结构

一个帮助程序结构,用于轻松初始化 D3D12_ROOT_SIGNATURE_DESC 结构。

语法

struct CD3DX12_ROOT_SIGNATURE_DESC  : public D3D12_ROOT_SIGNATURE_DESC{
       CD3DX12_ROOT_SIGNATURE_DESC();
       explicit CD3DX12_ROOT_SIGNATURE_DESC(const D3D12_ROOT_SIGNATURE_DESC &o);
       CD3DX12_ROOT_SIGNATURE_DESC(UINT numParameters, const D3D12_ROOT_PARAMETER* _pParameters, UINT numStaticSamplers = 0, const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL, D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE);
       CD3DX12_ROOT_SIGNATURE_DESC(CD3DX12_DEFAULT);
  void inline Init(UINT numParameters, const D3D12_ROOT_PARAMETER* _pParameters, UINT numStaticSamplers = 0, const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL, D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE);
  void static inline Init(D3D12_ROOT_SIGNATURE_DESC &desc, UINT numParameters, const D3D12_ROOT_PARAMETER* _pParameters, UINT numStaticSamplers = 0, const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL, D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE);
};

成员

CD3DX12_ROOT_SIGNATURE_DESC ()

创建CD3DX12_ROOT_SIGNATURE_DESC的未初始化的新实例。

explicit CD3DX12_ROOT_SIGNATURE_DESC (const D3D12_ROOT_SIGNATURE_DESC &o)

创建CD3DX12_ROOT_SIGNATURE_DESC的新实例,该实例使用另一个 D3D12_ROOT_SIGNATURE_DESC 结构的内容进行初始化。

CD3DX12_ROOT_SIGNATURE_DESC (UINT numParameters,const D3D12_ROOT_PARAMETER* _pParameters,UINT numStaticSamplers = 0,const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL,D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE)

创建CD3DX12_ROOT_SIGNATURE_DESC的新实例,初始化以下参数:

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(选择) D3D12_ROOT_SIGNATURE_FLAGS 标志 = D3D12_ROOT_SIGNATURE_FLAG_NONE

CD3DX12_ROOT_SIGNATURE_DESC (CD3DX12_DEFAULT)

创建使用默认参数初始化的 CD3DX12_ROOT_SIGNATURE_DESC 的新实例。

CD3DX12_ROOT_SIGNATURE_DESC(0,NULL,0,NULL,D3D12_ROOT_SIGNATURE_FLAG_NONE)

inline Init (UINT numParameters,const D3D12_ROOT_PARAMETER* _pParameters,UINT numStaticSamplers = 0,const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL,D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE)

指定初始化以下参数的函数:

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(选择) D3D12_ROOT_SIGNATURE_FLAGS 标志 = D3D12_ROOT_SIGNATURE_FLAG_NONE

static inline Init (D3D12_ROOT_SIGNATURE_DESC &desc、UINT numParameters、const D3D12_ROOT_PARAMETER* _pParameters、UINT numStaticSamplers = 0、const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL、D3D12_ROOT_SIGNATURE_FLAGS flags = D3D12_ROOT_SIGNATURE_FLAG_NONE)

指定初始化以下参数的函数:

& D3D12_ROOT_SIGNATURE_DESCdesc

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(选择) D3D12_ROOT_SIGNATURE_FLAGS 标志 = D3D12_ROOT_SIGNATURE_FLAG_NONE

要求

要求
标头
D3dx12.h

另请参阅

D3D12_ROOT_SIGNATURE_DESC

D3D12 的帮助程序结构