Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::BackendDeviceIdentity Struct Reference

Which backend a device belongs to and which native device it records against. Two devices can name each other's textures only when both fields match. The pointers are compared, never dereferenced. More...

#include "donner/gpu/TextureExport.h"

Public Member Functions

bool isValid () const
 Whether both fields name something; a backend that cannot share textures reports neither.
bool operator== (const BackendDeviceIdentity &other) const =default
 Equality operator.

Public Attributes

const void * family = nullptr
 Address of a per-backend static tag.
const void * nativeDevice = nullptr
 Native device object the backend records against.

Detailed Description

Which backend a device belongs to and which native device it records against. Two devices can name each other's textures only when both fields match. The pointers are compared, never dereferenced.

Member Function Documentation

◆ operator==()

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

Equality operator.

Parameters
otherIdentity to compare against.

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