nngn
Loading...
Searching...
No Matches
nngn::Handle Struct Reference

Base class for strongly-typed handles in 32-bit platforms. More...

#include <handle.h>

Public Member Functions

 Handle ()=default
 
 Handle (std::uint64_t id_)
 
 operator std::uint64_t () const
 

Public Attributes

std::uint64_t id
 

Detailed Description

Base class for strongly-typed handles in 32-bit platforms.

Example usage:

#if !(defined(_WIN64) || defined(__x86_64__) || ...)
#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(o) \
struct o : Handle { using Handle::Handle; };
#endif

Constructor & Destructor Documentation

◆ Handle() [1/2]

nngn::Handle::Handle ( )
default

◆ Handle() [2/2]

nngn::Handle::Handle ( std::uint64_t id_)
inline

Member Function Documentation

◆ operator std::uint64_t()

nngn::Handle::operator std::uint64_t ( ) const
inline

Member Data Documentation

◆ id

std::uint64_t nngn::Handle::id

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