struktur CD3DX12_RESOURCE_DESC
Struktur pembantu untuk mengaktifkan inisialisasi struktur D3D12_RESOURCE_DESC yang mudah.
Sintaks
struct CD3DX12_RESOURCE_DESC : public D3D12_RESOURCE_DESC{
CD3DX12_RESOURCE_DESC();
explicit CD3DX12_RESOURCE_DESC(const D3D12_RESOURCE_DESC& o);
CD3DX12_RESOURCE_DESC(D3D12_RESOURCE_DIMENSION dimension, UINT64 alignment, UINT64 width, UINT height, UINT16 depthOrArraySize, UINT16 mipLevels, DXGI_FORMAT format, UINT sampleCount, UINT sampleQuality, D3D12_TEXTURE_LAYOUT layout, D3D12_RESOURCE_FLAGS flags);
CD3DX12_RESOURCE_DESC static inline Buffer(const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE);
CD3DX12_RESOURCE_DESC static inline Buffer(UINT64 width, D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE, UINT64 alignment = 0);
CD3DX12_RESOURCE_DESC static inline Tex1D(DXGI_FORMAT format, UINT64 width, UINT16 arraySize = 1, UINT16 mipLevels = 0, D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE, D3D12_TEXTURE_LAYOUT layout = D3D12_TEXTURE_LAYOUT_UNKNOWN, UINT64 alignment = 0);
CD3DX12_RESOURCE_DESC static inline Tex2D(DXGI_FORMAT format, UINT64 width, UINT height, UINT16 arraySize = 1, UINT16 mipLevels = 0, UINT sampleCount = 1, UINT sampleQuality = 0, D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE, D3D12_TEXTURE_LAYOUT layout = D3D12_TEXTURE_LAYOUT_UNKNOWN, UINT64 alignment = 0);
CD3DX12_RESOURCE_DESC static inline Tex3D(DXGI_FORMAT format, UINT64 width, UINT height, UINT16 depth, UINT16 mipLevels = 0, D3D12_RESOURCE_FLAGS flags = D3D12_RESOURCE_FLAG_NONE, D3D12_TEXTURE_LAYOUT layout = D3D12_TEXTURE_LAYOUT_UNKNOWN, UINT64 alignment = 0);
UINT16 inline Depth() const;
UINT16 inline ArraySize() const;
UINT8 inline PlaneCount(ID3D12Device* pDevice) const;
UINT inline Subresources(ID3D12Device* pDevice) const;
UINT inline CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT PlaneSlice);
operator const D3D12_RESOURCE_DESC&() const;
operator == (const D3D12_RESOURCE_DESC& l, const D3D12_RESOURCE_DESC& r);
operator != (const D3D12_RESOURCE_DESC& l, const D3D12_RESOURCE_DESC& r);
};
Anggota
-
CD3DX12_RESOURCE_DESC()
-
Membuat instans CD3DX12_RESOURCE_DESC baru yang belum diinisialisasi.
-
CD3DX12_RESOURCE_DESC eksplisit(const D3D12_RESOURCE_DESC&o)
-
Membuat instans baru CD3DX12_RESOURCE_DESC, diinisialisasi dengan konten struktur D3D12_RESOURCE_DESC lain.
-
CD3DX12_RESOURCE_DESC(dimensi D3D12_RESOURCE_DIMENSION, perataan UINT64, lebar UINT64, tinggi UINT, UINT16 depthOrArraySize, UINT16 mipLevels, format DXGI_FORMAT, UINT sampleCount, UINT sampleQuality, tata letak D3D12_TEXTURE_LAYOUT, bendera D3D12_RESOURCE_FLAGS)
-
Membuat instans baru CD3DX12_RESOURCE_DESC, menginisialisasi parameter berikut:
dimensi D3D12_RESOURCE_DIMENSION
Perataan UINT64
Lebar UINT64
Tinggi UINT
Kedalaman UINT16OrArraySize
UINT16 mipLevels
UINT sampleCount
Sampel UINTQuality
-
Buffer sebaris statis(const D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo, bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
D3D12_RESOURCE_ALLOCATION_INFO& resAllocInfo
(opt) bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE
-
Buffer sebaris statis(lebar UINT64, bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE, perataan UINT64 = 0)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Lebar UINT64
(opt) bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE
(opt) Perataan UINT64 = 0
-
Tex1D sebaris statis(format DXGI_FORMAT, lebar UINT64, arraySize UINT16 = 1, UINT16 mipLevels = 0, bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE, tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN, perataan UINT64 = 0)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Lebar UINT64
(opt) ArraySize UINT16 = 1
(opt) UINT16 mipLevels = 0
(opt) bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE
(opt) tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN
(opt) Perataan UINT64 = 0
-
format Tex2D sebaris statis(DXGI_FORMAT, lebar UINT64, tinggi UINT, arraySize UINT16 = 1, UINT16 mipLevels = 0, UINT sampleCount = 1, UINT sampleQuality = 0, bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE, tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN, perataan UINT64 = 0)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Lebar UINT64
Tinggi UINT
(opt) ArraySize UINT16 = 1
(opt) UINT16 mipLevels = 0
(opt) UINT sampleCount = 1
(opt) Sampel UINTQuality = 0
(opt) bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE
(opt) tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN
(opt) Perataan UINT64 = 0
-
Tex3D sebaris statis(format DXGI_FORMAT, lebar UINT64, tinggi UINT, kedalaman UINT16, UINT16 mipLevels = 0, bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE, tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN, perataan UINT64 = 0)
-
Menentukan fungsi yang menginisialisasi parameter berikut:
Lebar UINT64
Tinggi UINT
Kedalaman UINT16
(opt) UINT16 mipLevels = 0
(opt) bendera D3D12_RESOURCE_FLAGS = D3D12_RESOURCE_FLAG_NONE
(opt) tata letak D3D12_TEXTURE_LAYOUT = D3D12_TEXTURE_LAYOUT_UNKNOWN
(opt) Perataan UINT64 = 0
-
inline Depth() const
-
Jika Dimensi == D3D12_RESOURCE_DIMENSION_TEXTURE3D, mengembalikan DepthOrArraySize. Jika Dimensi != D3D12_RESOURCE_DIMENSION_TEXTURE3D, mengembalikan 1.
-
const arraySize() sebaris
-
Jika Dimensi != D3D12_RESOURCE_DIMENSION_TEXTURE3D, mengembalikan DepthOrArraySize. Jika Dimensi == D3D12_RESOURCE_DIMENSION_TEXTURE3D, mengembalikan 1. Lihat D3D12_RESOURCE_DIMENSION_TEXTURE3D.
-
inline PlaneCount(ID3D12Device* pDevice) const
-
Mengembalikan D3D12GetFormatPlaneCount(pDevice, Format). Lihat D3D12GetFormatPlaneCount dan ID3D12Device.
-
inline Subresources(ID3D12Device* pDevice) const
-
Mengembalikan jumlah sub-sumber daya, dihitung sebagai MipLevels * ArraySize() * PlaneCount(pDevice).
-
inline CalcSubresource(UINT MipSlice, UINT ArraySlice, UINT PlaneSlice)
-
Menghitung indeks sub sumber daya, dengan menggunakan D3D12CalcSubresource.
-
const operator D3D12_RESOURCE_DESC&() const
-
Menentukan operator &pass-by-reference untuk jenis struktur induk.
-
operator == (const D3D12_RESOURCE_DESC& l, const D3D12_RESOURCE_DESC& r)
-
Mengembalikan true jika semua anggota dari setiap struktur identik.
-
operator != (const D3D12_RESOURCE_DESC& l, const D3D12_RESOURCE_DESC& r)
-
Mengembalikan false jika semua anggota dari setiap struktur identik.
Persyaratan
Persyaratan | Value |
---|---|
Header |
|