CD3DX12_HEAP_DESC 结构

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

语法

struct CD3DX12_HEAP_DESC  : public D3D12_HEAP_DESC{
   CD3DX12_HEAP_DESC();
   explicit CD3DX12_HEAP_DESC(const D3D12_HEAP_DESC &o);
   CD3DX12_HEAP_DESC(UINT64 size, D3D12_HEAP_PROPERTIES properties, UINT64 alignment = 0, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   CD3DX12_HEAP_DESC(UINT64 size, D3D12_HEAP_TYPE type, UINT64 alignment = 0, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   CD3DX12_HEAP_DESC(UINT64 size, D3D12_CPU_PAGE_PROPERTY cpuPageProperty, D3D12_MEMORY_POOL memoryPoolPreference, UINT64 alignment = 0, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   CD3DX12_HEAP_DESC(const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, D3D12_HEAP_PROPERTIES properties, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   CD3DX12_HEAP_DESC(const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, D3D12_HEAP_TYPE type, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   CD3DX12_HEAP_DESC(const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, D3D12_CPU_PAGE_PROPERTY cpuPageProperty, D3D12_MEMORY_POOL memoryPoolPreference, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE);
   operator const D3D12_HEAP_DESC&() const;
};

成员

CD3DX12_HEAP_DESC ()

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

explicit CD3DX12_HEAP_DESC (const D3D12_HEAP_DESC &o)

创建CD3DX12_HEAP_DESC的新实例,该实例使用另一个 D3D12_HEAP_DESC 结构的内容进行初始化。

CD3DX12_HEAP_DESC (UINT64 大小、D3D12_HEAP_PROPERTIES属性、UINT64 对齐方式 = 0、D3D12_HEAP_FLAGS标志 = D3D12_HEAP_FLAG_NONE)

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

UINT64 大小

D3D12_HEAP_PROPERTIES 属性

(选择) UINT64 对齐方式 = 0

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

CD3DX12_HEAP_DESC (UINT64 大小、D3D12_HEAP_TYPE类型、UINT64 对齐方式 = 0、D3D12_HEAP_FLAGS标志 = D3D12_HEAP_FLAG_NONE)

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

UINT64 大小

D3D12_HEAP_TYPE 类型

(选择) UINT64 对齐方式 = 0

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

CD3DX12_HEAP_DESC (UINT64 大小,D3D12_CPU_PAGE_PROPERTY cpuPageProperty,D3D12_MEMORY_POOL memoryPoolPreference,UINT64 alignment = 0,D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE)

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

UINT64 大小

D3D12_CPU_PAGE_PROPERTY cpuPageProperty

D3D12_MEMORY_POOL memoryPoolPreference

(选择) UINT64 对齐方式 = 0

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

CD3DX12_HEAP_DESC (const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo,D3D12_HEAP_PROPERTIES properties, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE)

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

D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo

D3D12_HEAP_PROPERTIES 属性

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

CD3DX12_HEAP_DESC (const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, D3D12_HEAP_TYPE type, D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE)

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

D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo

D3D12_HEAP_TYPE 类型

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

CD3DX12_HEAP_DESC (const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo、D3D12_CPU_PAGE_PROPERTY cpuPageProperty、D3D12_MEMORY_POOL memoryPoolPreference D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE)

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

D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo

D3D12_CPU_PAGE_PROPERTY cpuPageProperty

D3D12_MEMORY_POOL memoryPoolPreference

(选择) D3D12_HEAP_FLAGS 标志 = D3D12_HEAP_FLAG_NONE

operator const D3D12_HEAP_DESC& () const

定义 & CD3DX12_HEAP_DESC结构类型的传递引用运算符。

要求

要求
标头
D3dx12.h

请参阅

D3D12_HEAP_DESC

D3D12 的帮助程序结构