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

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.

Detailed Description

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.

Member Data Documentation

◆ status

SurfaceStatus donner::gpu::SurfaceTexture::status = SurfaceStatus::Success

What the surface reported.

◆ texture

Texture donner::gpu::SurfaceTexture::texture

The frame's texture; null when none came.


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