|
KiCad PCB EDA Suite
|
Opaque GPU resource handle, typed by a tag struct so handles of different kinds cannot be mixed. More...
#include <rhi_handle.h>
Public Member Functions | |
| bool | operator== (const RHI_HANDLE &other) const =default |
| operator bool () const | |
Public Attributes | |
| uint32_t | value = 0 |
Opaque GPU resource handle, typed by a tag struct so handles of different kinds cannot be mixed.
The low 20 bits index the backend's resource table and the high 12 bits hold a generation that changes each time the slot is reused, so a stale handle is detected instead of aliasing a new resource.
Definition at line 33 of file rhi_handle.h.
|
inlineexplicit |
Definition at line 39 of file rhi_handle.h.
|
default |
| uint32_t RHI_HANDLE< Tag >::value = 0 |
Definition at line 35 of file rhi_handle.h.
Referenced by RHI_COMPOSITOR::bindFBOTexture(), RHI_VULKAN_DEVICE::CreateBindGroup(), RHI_DEVICE::deferDestroy(), RhiHandleGeneration(), and RhiHandleIndex().