CD3DX12_DESCRIPTOR_RANGE結構
協助程序結構,可讓您輕鬆初始化 D3D12_DESCRIPTOR_RANGE 結構。
語法
struct CD3DX12_DESCRIPTOR_RANGE : public D3D12_DESCRIPTOR_RANGE{
CD3DX12_DESCRIPTOR_RANGE();
explicit CD3DX12_DESCRIPTOR_RANGE(const D3D12_DESCRIPTOR_RANGE &o);
CD3DX12_DESCRIPTOR_RANGE(D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
void inline Init(D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
void static inline Init(D3D12_DESCRIPTOR_RANGE &range, D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
};
成員
-
CD3DX12_DESCRIPTOR_RANGE()
-
建立新的未初始化D3DX12_DESCRIPTOR_RANGE實例。
-
explicit CD3DX12_DESCRIPTOR_RANGE(const D3D12_DESCRIPTOR_RANGE &o)
-
建立D3DX12_DESCRIPTOR_RANGE的新實例,以另一個 D3D12_DESCRIPTOR_RANGE 結構的內容初始化。
-
CD3DX12_DESCRIPTOR_RANGE(D3D12_DESCRIPTOR_RANGE_TYPE rangeType、UINT numDescriptors、UINT baseShaderRegister、UINT registerSpace = 0、UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)
-
建立D3DX12_DESCRIPTOR_RANGE的新實例,初始化下列參數:
D3D12_DESCRIPTOR_RANGE_TYPE rangeType
UINT numDescriptors
UINT baseShaderRegister
UINT registerSpace = 0
UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND
-
inline Init(D3D12_DESCRIPTOR_RANGE_TYPE rangeType、UINT numDescriptors、UINT baseShaderRegister、UINT registerSpace = 0、UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)
-
指定初始化下列參數的函式:
D3D12_DESCRIPTOR_RANGE_TYPE rangeType
UINT numDescriptors
UINT baseShaderRegister
UINT registerSpace = 0
UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND
-
static inline Init(D3D12_DESCRIPTOR_RANGE &range, D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)
-
指定初始化下列參數的函式:
D3D12_DESCRIPTOR_RANGE_TYPE rangeType
UINT numDescriptors
UINT baseShaderRegister
UINT registerSpace = 0
UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND
需求
需求 | 值 |
---|---|
頁首 |
|