共用方式為


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實例。

explicit CD3DX12_DESCRIPTOR_RANGE1(const D3D12_DESCRIPTOR_RANGE1 &o)

建立CD3DX12_DESCRIPTOR_RANGE1的新實例,使用另一個 D3D12_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 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 & range

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

需求

需求
頁首
D3dx12.h

另請參閱

D3D12_DESCRIPTOR_RANGE1

D3D12 的協助程序結構