Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::data::MeshRuntimeCache Class Referencefinal

#include <MeshRuntime.hpp>

Public Member Functions

 MeshRuntimeCache (std::shared_ptr< const ResourceSnapshot > resources, MeshTextureResolver textureResolver={}, MeshRuntimeLimits limits={}, ModernMeshResolver modernMeshResolver={})
 
std::expected< std::shared_ptr< const MeshRuntimeAsset >, MeshRuntimeError > resolve (DataId id, std::optional< DataId > rootSequenceDataId=std::nullopt, std::uint16_t priority=0)
 
bool rejectModernAsset (const MeshRenderData *renderData)
 
void rejectModernSequence (DataId rootSequenceDataId)
 
std::expected< void, MeshRuntimeError > replaceTextureImages (DataId id, std::span< const std::shared_ptr< const HmdTextureImage > > images)
 
std::size_t size () const noexcept
 
std::size_t releaseUnused () noexcept
 
void clear () noexcept
 
std::shared_ptr< const ResourceSnapshot > resources () const noexcept
 

Detailed Description

Definition at line 248 of file MeshRuntime.hpp.

Constructor & Destructor Documentation

◆ MeshRuntimeCache()

monopoly::data::MeshRuntimeCache::MeshRuntimeCache ( std::shared_ptr< const ResourceSnapshot >  resources,
MeshTextureResolver  textureResolver = {},
MeshRuntimeLimits  limits = {},
ModernMeshResolver  modernMeshResolver = {} 
)
explicit

Definition at line 508 of file MeshRuntime.cpp.

Member Function Documentation

◆ clear()

void monopoly::data::MeshRuntimeCache::clear ( )
noexcept

Definition at line 679 of file MeshRuntime.cpp.

◆ rejectModernAsset()

bool monopoly::data::MeshRuntimeCache::rejectModernAsset ( const MeshRenderData *  renderData)

Definition at line 629 of file MeshRuntime.cpp.

◆ rejectModernSequence()

void monopoly::data::MeshRuntimeCache::rejectModernSequence ( DataId  rootSequenceDataId)

Definition at line 647 of file MeshRuntime.cpp.

◆ releaseUnused()

std::size_t monopoly::data::MeshRuntimeCache::releaseUnused ( )
noexcept

Definition at line 663 of file MeshRuntime.cpp.

◆ replaceTextureImages()

std::expected< void, MeshRuntimeError > monopoly::data::MeshRuntimeCache::replaceTextureImages ( DataId  id,
std::span< const std::shared_ptr< const HmdTextureImage > >  images 
)

Definition at line 592 of file MeshRuntime.cpp.

◆ resolve()

std::expected< std::shared_ptr< const MeshRuntimeAsset >, MeshRuntimeError > monopoly::data::MeshRuntimeCache::resolve ( DataId  id,
std::optional< DataId >  rootSequenceDataId = std::nullopt,
std::uint16_t  priority = 0 
)

Definition at line 521 of file MeshRuntime.cpp.

◆ resources()

std::shared_ptr< const ResourceSnapshot > monopoly::data::MeshRuntimeCache::resources ( ) const
noexcept

Definition at line 684 of file MeshRuntime.cpp.

◆ size()

std::size_t monopoly::data::MeshRuntimeCache::size ( ) const
noexcept

Definition at line 652 of file MeshRuntime.cpp.


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