CD3DX12_ROOT_PARAMETER structure
Structure d’assistance pour faciliter l’initialisation d’une structure D3D12_ROOT_PARAMETER .
Syntaxe
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);
};
Membres
-
CD3DX12_ROOT_PARAMETER()
-
Crée un instance non initialisé d’un CD3DX12_ROOT_PARAMETER.
-
explicit CD3DX12_ROOT_PARAMETER(const D3D12_ROOT_PARAMETER &o)
-
Crée une instance d’une CD3DX12_ROOT_PARAMETER, initialisée avec le contenu d’une autre structure de 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)
-
Spécifie une fonction qui initialise les paramètres suivants :
& D3D12_ROOT_PARAMETER rootParam
UINT numDescriptorRanges
D3D12_DESCRIPTOR_RANGE* pDescriptorRanges
(opt) visibilité D3D12_SHADER_VISIBILITY = 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)
-
Spécifie une fonction qui initialise les paramètres suivants :
& D3D12_ROOT_PARAMETER rootParam
UINT num32BitValues
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
static inline InitAsConstantBufferView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
& D3D12_ROOT_PARAMETER rootParam
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
static inline InitAsShaderResourceView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
& D3D12_ROOT_PARAMETER rootParam
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
static inline InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER &rootParam, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
& D3D12_ROOT_PARAMETER rootParam
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsDescriptorTable(UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
UINT numDescriptorRanges
D3D12_DESCRIPTOR_RANGE* pDescriptorRanges
(opt) 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)
-
Spécifie une fonction qui initialise les paramètres suivants :
UINT num32BitValues
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsConstantBufferView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsShaderResourceView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsUnorderedAccessView(UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibility = D3D12_SHADER_VISIBILITY_ALL)
-
Spécifie une fonction qui initialise les paramètres suivants :
Nuanceur UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilité D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
Spécifications
Condition requise | Valeur |
---|---|
En-tête |
|
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour