Share via


estrutura CD3DX12_ROOT_PARAMETER

Uma estrutura auxiliar para habilitar a inicialização fácil de uma estrutura de D3D12_ROOT_PARAMETER .

Sintaxe

struct CD3DX12_ROOT_PARAMETER  : public D3D12_ROOT_PARAMETER{
       CD3DX12_ROOT_PARAMETER();
       explicit CD3DX12_ROOT_PARAMETER(const D3D12_ROOT_PARAMETER &o);
  void static inline InitAsDescriptorTable(D3D12_ROOT_PARAMETER &rootParam, UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsConstants(D3D12_ROOT_PARAMETER &rootParam, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsConstantBufferView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsShaderResourceView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsDescriptorTable(UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsConstants(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsConstantBufferView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsShaderResourceView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsUnorderedAccessView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
};

Membros

CD3DX12_ROOT_PARAMETER()

Cria uma nova instância não inicializada de um CD3DX12_ROOT_PARAMETER.

explicit CD3DX12_ROOT_PARAMETER(const D3D12_ROOT_PARAMETER &o)

Cria uma nova instância de um CD3DX12_ROOT_PARAMETER, inicializada com o conteúdo de outra estrutura D3D12_ROOT_PARAMETER .

Static inline InitAsDescriptorTable(D3D12_ROOT_PARAMETER &rootParam, UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

& D3D12_ROOT_PARAMETER rootParam

UINT numDescriptorRanges

D3D12_DESCRIPTOR_RANGE* pDescriptorRanges

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

Static inline InitAsConstants(D3D12_ROOT_PARAMETER &rootParam, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

& D3D12_ROOT_PARAMETER rootParam

UINT num32BitValues

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

Static inline InitAsConstantBufferView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

& D3D12_ROOT_PARAMETER rootParam

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

Static inline InitAsShaderResourceView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

& D3D12_ROOT_PARAMETER rootParam

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

Static inline InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

& D3D12_ROOT_PARAMETER rootParam

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

inline InitAsDescriptorTable(UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

UINT numDescriptorRanges

D3D12_DESCRIPTOR_RANGE* pDescriptorRanges

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

inline InitAsConstants(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

UINT num32BitValues

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

inline InitAsConstantBufferView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

inline InitAsShaderResourceView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

inline InitAsUnorderedAccessView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Especifica uma função que inicializa os seguintes parâmetros:

Sombreador UINTRegister

(opt) UINT registerSpace = 0

(opt) D3D12_SHADER_VISIBILITY visibilidade = D3D12_SHADER_VISIBILITY_ALL

Requisitos

Requisito Valor
parâmetro
D3dx12.h

Confira também

D3D12_ROOT_PARAMETER

Estruturas auxiliares do D3D12