Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::MaterialHandle Struct Reference

Opaque handle referencing a material in the registry. More...

#include <MaterialRegistry.h>

Public Member Functions

bool IsValid () const
constexpr bool operator== (const MaterialHandle &) const noexcept=default

Public Attributes

UUID Index {0}

Detailed Description

Opaque handle referencing a material in the registry.

Each handle encodes both the slot index and a version number. This allows invalidation detection when slots are reused.

Member Function Documentation

◆ IsValid()

bool Raven::MaterialHandle::IsValid ( ) const
inline

◆ operator==()

bool Raven::MaterialHandle::operator== ( const MaterialHandle & ) const
constexprdefaultnoexcept

Member Data Documentation

◆ Index

UUID Raven::MaterialHandle::Index {0}

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