struktur CD3DX12_ROOT_PARAMETER
Struktur pembantu untuk mengaktifkan inisialisasi struktur D3D12_ROOT_PARAMETER yang mudah.
Sintaks
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);
};
Anggota
-
CD3DX12_ROOT_PARAMETER()
-
Membuat instans CD3DX12_ROOT_PARAMETER baru yang belum diinisialisasi.
-
CD3DX12_ROOT_PARAMETER eksplisit(const D3D12_ROOT_PARAMETER &o)
-
Membuat instans baru CD3DX12_ROOT_PARAMETER, diinisialisasi dengan konten struktur D3D12_ROOT_PARAMETER lain.
-
InitAsDescriptorTable sebaris statis(D3D12_ROOT_PARAMETER &rootParam, UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_ROOT_PARAMETER &rootParam
UINT numDescriptorRanges
D3D12_DESCRIPTOR_RANGE* pDescriptorRanges
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline statis InitAsConstants(D3D12_ROOT_PARAMETER &rootParam, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, D3D12_SHADER_VISIBILITY visibilitas = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_ROOT_PARAMETER &rootParam
UINT num32BitValues
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
Inline statis InitAsConstantBufferView(D3D12_ROOT_PARAMETER &rootParam, shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_ROOT_PARAMETER &rootParam
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
Inline statis InitAsShaderResourceView(D3D12_ROOT_PARAMETER &rootParam, shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_ROOT_PARAMETER &rootParam
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
Inline statis InitAsUnorderedAccessView(D3D12_ROOT_PARAMETER &rootParam, shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_ROOT_PARAMETER &rootParam
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsDescriptorTable(UINT numDescriptorRanges, const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
UINT numDescriptorRanges
D3D12_DESCRIPTOR_RANGE* pDescriptorRanges
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsConstants(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
UINT num32BitValues
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsConstantBufferView(shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsShaderResourceView(shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
-
inline InitAsUnorderedAccessView(shaderRegister UINT, UINT registerSpace = 0, visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Shader UINTRegister
(opt) UINT registerSpace = 0
(opt) visibilitas D3D12_SHADER_VISIBILITY = D3D12_SHADER_VISIBILITY_ALL
Persyaratan
Persyaratan | Value |
---|---|
Header |
|