Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorShaders::UboUploadRegionList Class Reference

Fixed-capacity list of upload regions. More...

#include <phosphor-shaders/include/PhosphorShaders/IUboProfile.h>

Public Member Functions

void push (const UboUploadRegion &region)
 
int size () const
 
bool empty () const
 
const UboUploadRegionoperator[] (int i) const
 
const UboUploadRegionbegin () const
 
const UboUploadRegionend () const
 

Static Public Attributes

static constexpr int kCapacity = 4
 

Detailed Description

Fixed-capacity list of upload regions.

dirtyRegions() runs on the render hot path every dirty (animating) frame, so the dispatch must stay allocation-free — a profile never emits more than a few disjoint regions, and kCapacity bounds that by contract.

Member Function Documentation

◆ begin()

const UboUploadRegion * PhosphorShaders::UboUploadRegionList::begin ( ) const
inline

◆ empty()

bool PhosphorShaders::UboUploadRegionList::empty ( ) const
inline

◆ end()

const UboUploadRegion * PhosphorShaders::UboUploadRegionList::end ( ) const
inline

◆ operator[]()

const UboUploadRegion & PhosphorShaders::UboUploadRegionList::operator[] ( int  i) const
inline

◆ push()

void PhosphorShaders::UboUploadRegionList::push ( const UboUploadRegion region)
inline

◆ size()

int PhosphorShaders::UboUploadRegionList::size ( ) const
inline

Member Data Documentation

◆ kCapacity

constexpr int PhosphorShaders::UboUploadRegionList::kCapacity = 4
staticconstexpr

The documentation for this class was generated from the following file: