Blender V5.3
GHOST_ContextParams Struct Reference

#include <GHOST_Types.hh>

Public Attributes

bool is_stereo_visual
bool is_debug
bool no_hw_rt
bool use_alpha
GHOST_TVSyncModes vsync

Detailed Description

Settings used to create a GPU context.

Note
Avoid adding values here unless they apply across multiple context implementations. Otherwise the settings would be better added as extra arguments, only passed to that class.

Definition at line 849 of file GHOST_Types.hh.

Member Data Documentation

◆ is_debug

◆ is_stereo_visual

◆ no_hw_rt

bool GHOST_ContextParams::no_hw_rt

Definition at line 852 of file GHOST_Types.hh.

Referenced by GHOST_ContextVK::initializeDrawingContext().

◆ use_alpha

bool GHOST_ContextParams::use_alpha

Request a frame-buffer with an alpha channel that the compositor blends against the desktop, instead of presenting the surface as opaque. Only needed for client-side-decorations (rounded corners), see WITH_GHOST_CSD. Opaque presentation is used otherwise.

Used to request the alpha channel, but that request may be rejected in which case this will become false.

Definition at line 861 of file GHOST_Types.hh.

Referenced by GHOST_WindowWayland::GHOST_WindowWayland(), GHOST_Context::hasAlpha(), and GHOST_ContextEGL::initializeDrawingContext().

◆ vsync

GHOST_TVSyncModes GHOST_ContextParams::vsync

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