The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less).
More...
#include <gui_core/graphics/d3d12/d3d12_device.h>
|
| bool | Create (ID3D12Device *device, uint32_t capacity) |
| void | Clear () override |
| | Removes every image, freeing all indices.
|
| ImageIndex | Add (Image *image) override |
| | Adds an image (not owned) and returns its index.
|
| void | Remove (ImageIndex index) override |
| | Frees the index for reuse; the image itself stays.
|
| ImageIndex | ReserveIndex () |
| | A slot with no image yet, for one that comes later (a text atlas page).
|
| void | SetImage (ImageIndex index, D3D12Image *image) |
| | Points the slot at another image; the image it holds is no change.
|
| uint64_t | Writes () const |
| | How many views were written into the heap.
|
| uint32_t | Capacity () const |
| uint32_t | SlotsInUse () const |
| | One past the highest slot handed out: what a frame copies.
|
| D3D12_CPU_DESCRIPTOR_HANDLE | CpuStart () const |
| const std::vector< uint32_t > & | SamplerSlots () const |
| | Each slot's static sampler, as t7 holds them.
|
| virtual | ~ImageSet () |
The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less).
Their views are kept in a heap the CPU writes; each window frame copies the slots in use into its own shader-visible heap, so a slot pointed elsewhere never changes what a frame in flight reads.
◆ Create()
| bool tachyon::d3d12::D3D12ImageSet::Create |
( |
ID3D12Device * | device, |
|
|
uint32_t | capacity ) |
◆ Clear()
| void tachyon::d3d12::D3D12ImageSet::Clear |
( |
| ) |
|
|
overridevirtual |
◆ Add()
◆ Remove()
| void tachyon::d3d12::D3D12ImageSet::Remove |
( |
ImageIndex | index | ) |
|
|
overridevirtual |
◆ ReserveIndex()
| ImageIndex tachyon::d3d12::D3D12ImageSet::ReserveIndex |
( |
| ) |
|
A slot with no image yet, for one that comes later (a text atlas page).
◆ SetImage()
Points the slot at another image; the image it holds is no change.
◆ Writes()
| uint64_t tachyon::d3d12::D3D12ImageSet::Writes |
( |
| ) |
const |
|
inline |
How many views were written into the heap.
◆ Capacity()
| uint32_t tachyon::d3d12::D3D12ImageSet::Capacity |
( |
| ) |
const |
|
inline |
◆ SlotsInUse()
| uint32_t tachyon::d3d12::D3D12ImageSet::SlotsInUse |
( |
| ) |
const |
|
inline |
One past the highest slot handed out: what a frame copies.
◆ CpuStart()
| D3D12_CPU_DESCRIPTOR_HANDLE tachyon::d3d12::D3D12ImageSet::CpuStart |
( |
| ) |
const |
|
inline |
◆ SamplerSlots()
| const std::vector< uint32_t > & tachyon::d3d12::D3D12ImageSet::SamplerSlots |
( |
| ) |
const |
|
inline |
Each slot's static sampler, as t7 holds them.
The documentation for this class was generated from the following file: