|
| RGLCore & | core () noexcept |
| | Returns the owning core as an RGLCore.
|
| |
| EGLDisplay | eglDisplay () const noexcept |
| | Returns the EGL display associated with this device.
|
| |
| EGLContext | eglContext () const noexcept |
| | Returns the EGL context for the calling thread.
|
| |
| EGLDeviceEXT | eglDevice () const noexcept |
| | Returns the EGLDeviceEXT backing this device, if any.
|
| |
| sk_sp< GrDirectContext > | skContext () const noexcept |
| | Returns the Skia GrDirectContext for the calling thread.
|
| |
| const REGLDisplayProcs & | eglDisplayProcs () const noexcept |
| | Returns the display-level EGL function pointers for this device.
|
| |
| const REGLDisplayExtensions & | eglDisplayExtensions () const noexcept |
| | Returns the display-level EGL extensions supported by this device.
|
| |
| const REGLDeviceExtensions & | eglDeviceExtensions () const noexcept |
| | Returns the device-level EGL extensions supported by this device.
|
| |
| const RGLExtensions & | glExtensions () const noexcept |
| | Returns the OpenGL ES extensions supported by this device's context.
|
| |
| void | wait () noexcept override |
| | Blocks until all GL commands submitted on this device's context have completed.
|
| |
| | ~RDevice () noexcept |
| | Destructor.
|
| |
| int | drmFd () const noexcept |
| | Returns the primary DRM file descriptor.
|
| |
| int | drmFdReadOnly () const noexcept |
| | Returns the read-only DRM file descriptor.
|
| |
| void * | drmUserData () const noexcept |
| | Returns the user data associated with the DRM device.
|
| |
| dev_t | id () const noexcept |
| | Returns the device id (dev_t) of the DRM node.
|
| |
| const std::string & | drmNode () const noexcept |
| | Returns the path of the DRM node.
|
| |
| const std::string & | drmDriverName () const noexcept |
| | Returns the DRM driver name.
|
| |
| RDriver | drmDriver () const noexcept |
| | Returns the detected DRM driver.
|
| |
| RCore & | core () const noexcept |
| | Returns the RCore instance that owns this device.
|
| |
| RGLDevice * | asGL () noexcept |
| | Attempts to cast this device to an RGLDevice.
|
| |
| RRSDevice * | asRS () noexcept |
| | Attempts to cast this device to an RRSDevice.
|
| |
| RVKDevice * | asVK () noexcept |
| | Attempts to cast this device to an RVKDevice.
|
| |
| const Caps & | caps () const noexcept |
| | Returns the capabilities of this device.
|
| |
| | RObject ()=default |
| | Constructs a default RObject.
|
| |
OpenGL backend implementation of RDevice.
Represents a single GPU driven through EGL and OpenGL ES. It owns the device's EGL display, the main-thread EGL context and Skia GrDirectContext, and the associated EGL/GL extension tables. Because contexts are per-thread, eglContext() and skContext() return the objects bound to the calling thread (lazily created as shared contexts on non-main threads).
Obtain it from an RDevice via RDevice::asGL().