Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::ResourceIdentity Struct Reference

Identity of a resource at a point in time: slot plus generation, so slot reuse cannot alias two different resources. More...

#include "donner/gpu/Handles.h"

Public Member Functions

bool operator== (const ResourceIdentity &other) const =default
 Equality operator.

Public Attributes

uint32_t slotIndex = 0
 Resource slot index.
uint32_t generation = 0
 Slot generation at capture time.

Detailed Description

Identity of a resource at a point in time: slot plus generation, so slot reuse cannot alias two different resources.

Recorded commands and dependent-resource records store identities and re-validate them on every use.

Member Function Documentation

◆ operator==()

bool donner::gpu::ResourceIdentity::operator== ( const ResourceIdentity & other) const
default

Equality operator.

Parameters
otherIdentity to compare against.

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