Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
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.

Examples
geode_embed.cc.

Member Data Documentation

◆ status

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

What the surface reported.

Examples
geode_embed.cc.

◆ texture

Texture donner::gpu::SurfaceTexture::texture

The frame's texture; null when none came.

Examples
geode_embed.cc.

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