Bagikan melalui


struktur CD3DX12_ROOT_SIGNATURE_DESC

Struktur pembantu untuk mengaktifkan inisialisasi struktur D3D12_ROOT_SIGNATURE_DESC yang mudah.

Sintaks

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);
};

Anggota

CD3DX12_ROOT_SIGNATURE_DESC()

Membuat instans CD3DX12_ROOT_SIGNATURE_DESC baru yang belum diinisialisasi.

CD3DX12_ROOT_SIGNATURE_DESC eksplisit(const D3D12_ROOT_SIGNATURE_DESC &o)

Membuat instans baru CD3DX12_ROOT_SIGNATURE_DESC, diinisialisasi dengan konten struktur D3D12_ROOT_SIGNATURE_DESC lain.

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

Membuat instans baru CD3DX12_ROOT_SIGNATURE_DESC, menginisialisasi parameter berikut:

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(opt) bendera D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAG_NONE

CD3DX12_ROOT_SIGNATURE_DESC(CD3DX12_DEFAULT)

Membuat instans baru CD3DX12_ROOT_SIGNATURE_DESC, diinisialisasi dengan parameter default.

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, bendera D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAG_NONE)

Menentukan fungsi yang menginisialisasi parameter berikut:

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(opt) bendera D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAG_NONE

statis inline Init(D3D12_ROOT_SIGNATURE_DESC &desc, UINT numParameters, const D3D12_ROOT_PARAMETER* _pParameters, UINT numStaticSamplers = 0, const D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL, bendera D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAG_NONE)

Menentukan fungsi yang menginisialisasi parameter berikut:

D3D12_ROOT_SIGNATURE_DESC &desc

UINT numParameters

D3D12_ROOT_PARAMETER* _pParameters

(opt) UINT numStaticSamplers = 0

(opt) D3D12_STATIC_SAMPLER_DESC* _pStaticSamplers = NULL

(opt) bendera D3D12_ROOT_SIGNATURE_FLAGS = D3D12_ROOT_SIGNATURE_FLAG_NONE

Persyaratan

Persyaratan Value
Header
D3dx12.h

Baca juga

D3D12_ROOT_SIGNATURE_DESC

Struktur Pembantu untuk D3D12