Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can be collected on any thread as long as their destruction is scheduled in a reactor. More...
#include <handle_gles.h>
Classes | |
| struct | Equal |
| A comparer used to test the equality of two handles. More... | |
| struct | Hash |
| Get the hash value of this handle. Handles can be used as map keys. More... | |
Public Member Functions | |
| constexpr bool | IsDead () const |
| Determines if the handle is dead. More... | |
Static Public Member Functions | |
| static HandleGLES | DeadHandle () |
| Creates a dead handle. More... | |
Public Attributes | |
| HandleType | type = HandleType::kUnknown |
| std::optional< UniqueID > | name |
Friends | |
| class | ReactorGLES |
Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can be collected on any thread as long as their destruction is scheduled in a reactor.
Definition at line 36 of file handle_gles.h.
|
inlinestatic |
Creates a dead handle.
Definition at line 45 of file handle_gles.h.
References impeller::kUnknown.
Referenced by impeller::ReactorGLES::CreateHandle().
|
inlineconstexpr |
Determines if the handle is dead.
Definition at line 54 of file handle_gles.h.
References name.
Referenced by impeller::UniqueHandleGLES::IsValid(), std::operator<<(), impeller::ReactorGLES::SetDebugLabel(), impeller::DeviceBufferGLES::~DeviceBufferGLES(), and impeller::UniqueHandleGLES::~UniqueHandleGLES().
|
friend |
Definition at line 78 of file handle_gles.h.
| std::optional<UniqueID> impeller::HandleGLES::name |
Definition at line 38 of file handle_gles.h.
Referenced by IsDead(), impeller::HandleGLES::Hash::operator()(), impeller::HandleGLES::Equal::operator()(), and std::operator<<().
| HandleType impeller::HandleGLES::type = HandleType::kUnknown |
Definition at line 37 of file handle_gles.h.
Referenced by impeller::HandleGLES::Hash::operator()(), impeller::HandleGLES::Equal::operator()(), and std::operator<<().