Share via


struttura CD3DX12_ROOT_PARAMETER1

Struttura helper per facilitare l'inizializzazione di una struttura D3D12_ROOT_PARAMETER1.

Sintassi

struct CD3DX12_ROOT_PARAMETER1  : public D3D12_ROOT_PARAMETER1{
       CD3DX12_ROOT_PARAMETER1();
       explicit CD3DX12_ROOT_PARAMETER1(const D3D12_ROOT_PARAMETER1 &o);
  void static inline InitAsDescriptorTable(D3D12_ROOT_PARAMETER1 &rootParam, UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsConstants(D3D12_ROOT_PARAMETER1 &rootParam, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsConstantBufferView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsShaderResourceView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void static inline InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsDescriptorTable(UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE1* 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_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsShaderResourceView(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
  void inline InitAsUnorderedAccessView(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL);
};

Membri

CD3DX12_ROOT_PARAMETER1()

Crea una nuova istanza non inizializzata di un CD3DX12_ROOT_PARAMETER1.

explicit CD3DX12_ROOT_PARAMETER1(const D3D12_ROOT_PARAMETER1 &o)

Crea una nuova istanza di un CD3DX12_ROOT_PARAMETER1, inizializzata con il contenuto di un'altra struttura D3D12_ROOT_PARAMETER1 .

static inline InitAsDescriptorTable(D3D12_ROOT_PARAMETER1 &rootParam, UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Specifica una funzione che inizializza i parametri seguenti:

D3D12_ROOT_PARAMETER1 &rootParam

UINT numDescriptorRanges

const D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

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

Specifica una funzione che inizializza i parametri seguenti:

D3D12_ROOT_PARAMETER1 &rootParam

UINT num32BitValues

UINT shaderRegister

UINT registerSpace = 0

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

static inline InitAsConstantBufferView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Specifica una funzione che inizializza i parametri seguenti:

D3D12_ROOT_PARAMETER1 &rootParam

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

static inline InitAsShaderResourceView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Specifica una funzione che inizializza i parametri seguenti:

D3D12_ROOT_PARAMETER1 &rootParam

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

static inline InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER1 &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)

Specifica una funzione che inizializza i parametri seguenti:

D3D12_ROOT_PARAMETER1 &rootParam

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

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

Specifica una funzione che inizializza i parametri seguenti:

UINT numDescriptorRanges

const D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

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

Specifica una funzione che inizializza i parametri seguenti:

UINT num32BitValues

UINT shaderRegister

UINT registerSpace = 0

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

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

Specifica una funzione che inizializza i parametri seguenti:

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

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

Specifica una funzione che inizializza i parametri seguenti:

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

inline InitAsUnorderedAccessView(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flag = D3D12_ROOT_DESCRIPTOR_FLAG_NONE, visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)

Specifica una funzione che inizializza i parametri seguenti:

UINT shaderRegister

UINT registerSpace = 0

flag D3D12_ROOT_DESCRIPTOR_FLAGS = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

visibilità D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL

Requisiti

Requisito Valore
Intestazione
D3dx12.h

Vedi anche

D3D12_ROOT_PARAMETER1

Strutture helper per D3D12