CD3DX12_DESCRIPTOR_RANGE1结构

一个帮助程序结构,用于轻松初始化 D3D12_DESCRIPTOR_RANGE1 结构。

语法

struct CD3DX12_DESCRIPTOR_RANGE1  : public D3D12_DESCRIPTOR_RANGE1{
       CD3DX12_DESCRIPTOR_RANGE1();
       explicit CD3DX12_DESCRIPTOR_RANGE1(const D3D12_DESCRIPTOR_RANGE1 &o);
       CD3DX12_DESCRIPTOR_RANGE1(D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
  void inline Init(D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
  void static inline Init(D3D12_DESCRIPTOR_RANGE1 &range, D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND);
};

成员

CD3DX12_DESCRIPTOR_RANGE1 ()

创建CD3DX12_DESCRIPTOR_RANGE1的新未初始化实例。

显式CD3DX12_DESCRIPTOR_RANGE1 (const D3D12_DESCRIPTOR_RANGE1 &o)

创建使用另一个 D3D12_DESCRIPTOR_RANGE1 结构的内容初始化CD3DX12_DESCRIPTOR_RANGE1的新实例。

CD3DX12_DESCRIPTOR_RANGE1 (D3D12_DESCRIPTOR_RANGE_TYPE rangeType、UINT numDescriptors、UINT baseShaderRegister、UINT registerSpace = 0、D3D12_DESCRIPTOR_RANGE_FLAGS标志 = D3D12_DESCRIPTOR_RANGE_FLAG_NONE、UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)

创建CD3DX12_DESCRIPTOR_RANGE1的新实例,初始化以下参数:

D3D12_DESCRIPTOR_RANGE_TYPE rangeType

UINT numDescriptors

UINT baseShaderRegister

UINT registerSpace = 0

D3D12_DESCRIPTOR_RANGE_FLAGS 标志 = D3D12_DESCRIPTOR_RANGE_FLAG_NONE

UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND

inline Init (D3D12_DESCRIPTOR_RANGE_TYPE rangeType、UINT numDescriptors、UINT baseShaderRegister、UINT registerSpace = 0、D3D12_DESCRIPTOR_RANGE_FLAGS标志 = D3D12_DESCRIPTOR_RANGE_FLAG_NONE、UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)

指定初始化以下参数的函数:

D3D12_DESCRIPTOR_RANGE_TYPE rangeType

UINT numDescriptors

UINT baseShaderRegister

UINT registerSpace = 0

D3D12_DESCRIPTOR_RANGE_FLAGS 标志 = D3D12_DESCRIPTOR_RANGE_FLAG_NONE

UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND

static init (D3D12_DESCRIPTOR_RANGE1 &range, D3D12_DESCRIPTOR_RANGE_TYPE rangeType, UINT numDescriptors, UINT baseShaderRegister, UINT registerSpace = 0, D3D12_DESCRIPTOR_RANGE_FLAGS flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE, UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND)

指定初始化以下参数的函数:

& D3D12_DESCRIPTOR_RANGE1范围

D3D12_DESCRIPTOR_RANGE_TYPE rangeType

UINT numDescriptors

UINT baseShaderRegister

UINT registerSpace = 0

D3D12_DESCRIPTOR_RANGE_FLAGS 标志 = D3D12_DESCRIPTOR_RANGE_FLAG_NONE

UINT offsetInDescriptorsFromTableStart = D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND

要求

要求 Value
标头
D3dx12.h

另请参阅

D3D12_DESCRIPTOR_RANGE1

D3D12 的帮助程序结构