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

Move-only ownership of a material created at runtime. More...

#include <RuntimeMaterialLease.h>

Collaboration diagram for Engine::Assets::RuntimeMaterialLease:

Public Member Functions

 RuntimeMaterialLease ()=default
 ~RuntimeMaterialLease ()
 RuntimeMaterialLease (const RuntimeMaterialLease &)=delete
RuntimeMaterialLease & operator= (const RuntimeMaterialLease &)=delete
 RuntimeMaterialLease (RuntimeMaterialLease &&other) noexcept
RuntimeMaterialLease & operator= (RuntimeMaterialLease &&other) noexcept
MaterialHandle handle () const
bool isValid () const
 operator bool () const
void reset ()

Private Member Functions

 RuntimeMaterialLease (EngineKern *owner, MaterialHandle handle)

Private Attributes

EngineKern * owner_ = nullptr
MaterialHandle handle_

Detailed Description

Move-only ownership of a material created at runtime.

Definition at line 15 of file RuntimeMaterialLease.h.

Constructor & Destructor Documentation

◆ RuntimeMaterialLease() [1/4]

Engine::Assets::RuntimeMaterialLease::RuntimeMaterialLease ( )
default

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

Here is the caller graph for this function:

◆ ~RuntimeMaterialLease()

Engine::Assets::RuntimeMaterialLease::~RuntimeMaterialLease ( )

◆ RuntimeMaterialLease() [2/4]

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

References RuntimeMaterialLease().

Here is the call graph for this function:

◆ RuntimeMaterialLease() [3/4]

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

References RuntimeMaterialLease().

Here is the call graph for this function:

◆ RuntimeMaterialLease() [4/4]

Engine::Assets::RuntimeMaterialLease::RuntimeMaterialLease ( EngineKern * owner,
MaterialHandle handle )
inlineprivate

Definition at line 36 of file RuntimeMaterialLease.h.

References ::Engine::EngineKern, handle(), handle_, and owner_.

Here is the call graph for this function:

Member Function Documentation

◆ handle()

MaterialHandle Engine::Assets::RuntimeMaterialLease::handle ( ) const
inlinenodiscard

Definition at line 27 of file RuntimeMaterialLease.h.

References handle_.

Referenced by RuntimeMaterialLease().

Here is the caller graph for this function:

◆ isValid()

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

Definition at line 28 of file RuntimeMaterialLease.h.

References handle_, and owner_.

Referenced by operator bool().

Here is the caller graph for this function:

◆ operator bool()

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

Definition at line 29 of file RuntimeMaterialLease.h.

References isValid().

Here is the call graph for this function:

◆ operator=() [1/2]

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

References RuntimeMaterialLease().

Here is the call graph for this function:

◆ operator=() [2/2]

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

References RuntimeMaterialLease().

Here is the call graph for this function:

◆ reset()

void Engine::Assets::RuntimeMaterialLease::reset ( )

Member Data Documentation

◆ handle_

MaterialHandle Engine::Assets::RuntimeMaterialLease::handle_
private

Definition at line 42 of file RuntimeMaterialLease.h.

Referenced by handle(), isValid(), and RuntimeMaterialLease().

◆ owner_

EngineKern* Engine::Assets::RuntimeMaterialLease::owner_ = nullptr
private

Definition at line 41 of file RuntimeMaterialLease.h.

Referenced by isValid(), and RuntimeMaterialLease().


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