TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::d3d12::D3D12ImageSet Class Referencefinal

The images the shaders sample, by ImageIndex (1-based; the shaders' slot is one less). More...

#include <gui_core/graphics/d3d12/d3d12_device.h>

Inheritance diagram for tachyon::d3d12::D3D12ImageSet:

Public Member Functions

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.
Public Member Functions inherited from tachyon::ImageSet
virtual ~ImageSet ()

Detailed Description

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.

Member Function Documentation

◆ Create()

bool tachyon::d3d12::D3D12ImageSet::Create ( ID3D12Device * device,
uint32_t capacity )

◆ Clear()

void tachyon::d3d12::D3D12ImageSet::Clear ( )
overridevirtual

Removes every image, freeing all indices.

Implements tachyon::ImageSet.

◆ Add()

ImageIndex tachyon::d3d12::D3D12ImageSet::Add ( Image * image)
overridevirtual

Adds an image (not owned) and returns its index.

Implements tachyon::ImageSet.

◆ Remove()

void tachyon::d3d12::D3D12ImageSet::Remove ( ImageIndex index)
overridevirtual

Frees the index for reuse; the image itself stays.

Implements tachyon::ImageSet.

◆ ReserveIndex()

ImageIndex tachyon::d3d12::D3D12ImageSet::ReserveIndex ( )

A slot with no image yet, for one that comes later (a text atlas page).

◆ SetImage()

void tachyon::d3d12::D3D12ImageSet::SetImage ( ImageIndex index,
D3D12Image * image )

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: