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
要求
要求 | 值 |
---|---|
标头 |
|