detail::gpu_id
| Type | Struct |
| Namespace | conjure::renderer |
| Include File Path | engine/include/conjure/renderer/gpu_ids.h |
| Source File Path | N/A |
| API ↗ | Rendering, Rendering a frame |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | generation | u16 | 0 | |
| public | index | u32 | 0 |
Functions
Public
is_valid
is_valid[[nodiscard]] constexpr bool is_valid() const noexcept;True for an id a renderer handed out (whether or not it is still live).
to_u64
to_u64[[nodiscard]] constexpr u64 to_u64() const noexcept;Packs the id into one integer (generation in the high 32 bits). Used for ImTextureID style opaque handles and for hashing.
Operator Overloads
Public
operator<=>
operator<=>[[nodiscard]] constexpr auto operator<=>(
const gpu_id &) const noexcept = default;