SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::PipelineFactory::Handle Struct Reference

#include <PipelineFactory.hpp>

Public Member Functions

 operator bool () const
 
bool operator== (const Handle &other) const
 
bool operator!= (const Handle &other) const
 

Public Attributes

uint32_t index = 0
 
uint32_t generation = 0
 

Detailed Description

Stable handle to a pipeline. Remains valid across hot-reloads. Uses generational indexing to detect use-after-free of destroyed handles.

Member Function Documentation

◆ operator bool()

sd::PipelineFactory::Handle::operator bool ( ) const
inlineexplicit

◆ operator!=()

bool sd::PipelineFactory::Handle::operator!= ( const Handle other) const
inline

◆ operator==()

bool sd::PipelineFactory::Handle::operator== ( const Handle other) const
inline

Member Data Documentation

◆ generation

uint32_t sd::PipelineFactory::Handle::generation = 0

◆ index

uint32_t sd::PipelineFactory::Handle::index = 0

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