Raven Engine v0.1
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

Public Attributes

u32 Index = 0xFFFFFFFF
 Slot index in the registry.
u32 Version = 0
 Monotonically increasing slot version.

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

Member Data Documentation

◆ Index

u32 Raven::MaterialHandle::Index = 0xFFFFFFFF

Slot index in the registry.

◆ Version

u32 Raven::MaterialHandle::Version = 0

Monotonically increasing slot version.


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