|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
A texture acquired from a surface for one frame, with the state the surface reported while handing it over. More...
#include "donner/gpu/Device.h"
Public Attributes | |
| Texture | texture |
| The frame's texture; null when none came. | |
| SurfaceStatus | status = SurfaceStatus::Success |
| What the surface reported. | |
A texture acquired from a surface for one frame, with the state the surface reported while handing it over.
A non-success status can still come with a usable texture: a surface that has drifted out of date usually still presents, so the caller chooses between drawing this frame and reconfiguring first.
| SurfaceStatus donner::gpu::SurfaceTexture::status = SurfaceStatus::Success |
What the surface reported.
| Texture donner::gpu::SurfaceTexture::texture |
The frame's texture; null when none came.