OGRE-Next  3.0.0
Object-Oriented Graphics Rendering Engine
Ogre::TextureGpuManager::BudgetEntry Struct Reference

Specifies the minimum squared resolution & number of slices to keep around all the for time StagingTextures. More...

#include <OgreTextureGpuManager.h>

Public Member Functions

 BudgetEntry ()
 
 BudgetEntry (PixelFormatGpu _formatFamily, uint32 _minResolution, uint32 _minNumSlices)
 
bool operator() (const BudgetEntry &_l, const BudgetEntry &_r) const
 

Public Attributes

PixelFormatGpu formatFamily
 
uint32 minNumSlices
 
uint32 minResolution
 

Detailed Description

Specifies the minimum squared resolution & number of slices to keep around all the for time StagingTextures.

So: PixelFormatGpu format = PixelFormatGpuUtils::getFamily(PFG_RGBA8_UNORM); BudgetEntry( format, 4096u, 2u ); Will keep around 128MB of staging texture, with a resolution of 4096x4096 x 2 slices.

Constructor & Destructor Documentation

◆ BudgetEntry() [1/2]

Ogre::TextureGpuManager::BudgetEntry::BudgetEntry ( )
inline

◆ BudgetEntry() [2/2]

Ogre::TextureGpuManager::BudgetEntry::BudgetEntry ( PixelFormatGpu  _formatFamily,
uint32  _minResolution,
uint32  _minNumSlices 
)
inline

Member Function Documentation

◆ operator()()

bool Ogre::TextureGpuManager::BudgetEntry::operator() ( const BudgetEntry _l,
const BudgetEntry _r 
) const

Member Data Documentation

◆ formatFamily

PixelFormatGpu Ogre::TextureGpuManager::BudgetEntry::formatFamily

◆ minNumSlices

uint32 Ogre::TextureGpuManager::BudgetEntry::minNumSlices

◆ minResolution

uint32 Ogre::TextureGpuManager::BudgetEntry::minResolution

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