Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::RuntimeTextureDescriptorLease Class Reference

Move-only ownership of one runtime texture descriptor slot. More...

#include <RuntimeTextureDescriptorLease.h>

Collaboration diagram for Engine::Assets::RuntimeTextureDescriptorLease:

Public Member Functions

 RuntimeTextureDescriptorLease ()=default
 ~RuntimeTextureDescriptorLease ()
 RuntimeTextureDescriptorLease (const RuntimeTextureDescriptorLease &)=delete
RuntimeTextureDescriptorLease & operator= (const RuntimeTextureDescriptorLease &)=delete
 RuntimeTextureDescriptorLease (RuntimeTextureDescriptorLease &&other) noexcept
RuntimeTextureDescriptorLease & operator= (RuntimeTextureDescriptorLease &&other) noexcept
uint32_t index () const
bool isValid () const
 operator bool () const
void reset ()

Private Member Functions

 RuntimeTextureDescriptorLease (Core::AssetManager *owner, uint32_t descriptorIndex)

Private Attributes

Core::AssetManager * owner_ = nullptr
uint32_t descriptorIndex_ = std::numeric_limits<uint32_t>::max()

Detailed Description

Move-only ownership of one runtime texture descriptor slot.

Definition at line 16 of file RuntimeTextureDescriptorLease.h.

Constructor & Destructor Documentation

◆ RuntimeTextureDescriptorLease() [1/4]

Engine::Assets::RuntimeTextureDescriptorLease::RuntimeTextureDescriptorLease ( )
default

Referenced by operator=(), operator=(), RuntimeTextureDescriptorLease(), and RuntimeTextureDescriptorLease().

Here is the caller graph for this function:

◆ ~RuntimeTextureDescriptorLease()

Engine::Assets::RuntimeTextureDescriptorLease::~RuntimeTextureDescriptorLease ( )

◆ RuntimeTextureDescriptorLease() [2/4]

Engine::Assets::RuntimeTextureDescriptorLease::RuntimeTextureDescriptorLease ( const RuntimeTextureDescriptorLease & )
delete

References RuntimeTextureDescriptorLease().

Here is the call graph for this function:

◆ RuntimeTextureDescriptorLease() [3/4]

Engine::Assets::RuntimeTextureDescriptorLease::RuntimeTextureDescriptorLease ( RuntimeTextureDescriptorLease && other)
noexcept

References RuntimeTextureDescriptorLease().

Here is the call graph for this function:

◆ RuntimeTextureDescriptorLease() [4/4]

Engine::Assets::RuntimeTextureDescriptorLease::RuntimeTextureDescriptorLease ( Core::AssetManager * owner,
uint32_t descriptorIndex )
inlineprivate

Definition at line 37 of file RuntimeTextureDescriptorLease.h.

References descriptorIndex_, and owner_.

Member Function Documentation

◆ index()

uint32_t Engine::Assets::RuntimeTextureDescriptorLease::index ( ) const
inlinenodiscard

Definition at line 28 of file RuntimeTextureDescriptorLease.h.

References descriptorIndex_.

◆ isValid()

bool Engine::Assets::RuntimeTextureDescriptorLease::isValid ( ) const
inlinenodiscard

Definition at line 29 of file RuntimeTextureDescriptorLease.h.

References owner_.

Referenced by operator bool().

Here is the caller graph for this function:

◆ operator bool()

Engine::Assets::RuntimeTextureDescriptorLease::operator bool ( ) const
inlineexplicit

Definition at line 30 of file RuntimeTextureDescriptorLease.h.

References isValid().

Here is the call graph for this function:

◆ operator=() [1/2]

RuntimeTextureDescriptorLease & Engine::Assets::RuntimeTextureDescriptorLease::operator= ( const RuntimeTextureDescriptorLease & )
delete

References RuntimeTextureDescriptorLease().

Here is the call graph for this function:

◆ operator=() [2/2]

RuntimeTextureDescriptorLease & Engine::Assets::RuntimeTextureDescriptorLease::operator= ( RuntimeTextureDescriptorLease && other)
noexcept

References RuntimeTextureDescriptorLease().

Here is the call graph for this function:

◆ reset()

void Engine::Assets::RuntimeTextureDescriptorLease::reset ( )

Member Data Documentation

◆ descriptorIndex_

uint32_t Engine::Assets::RuntimeTextureDescriptorLease::descriptorIndex_ = std::numeric_limits<uint32_t>::max()
private

Definition at line 43 of file RuntimeTextureDescriptorLease.h.

Referenced by index(), and RuntimeTextureDescriptorLease().

◆ owner_

Core::AssetManager* Engine::Assets::RuntimeTextureDescriptorLease::owner_ = nullptr
private

Definition at line 42 of file RuntimeTextureDescriptorLease.h.

Referenced by isValid(), and RuntimeTextureDescriptorLease().


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