KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::GPU_OOM_ERROR Class Reference

Raised when a GPU buffer allocation is predicted to exceed the available video memory. More...

#include <gpu_oom_error.h>

Inheritance diagram for KIGFX::GPU_OOM_ERROR:

Public Member Functions

 GPU_OOM_ERROR (const std::string &aMessage)
 

Detailed Description

Raised when a GPU buffer allocation is predicted to exceed the available video memory.

Throwing this before the allocation is issued lets the canvas fall back to software rendering instead of being killed by the graphics driver (e.g. the NVIDIA "Error code: 6" abort, which terminates the process before glGetError() can report GL_OUT_OF_MEMORY).

Definition at line 36 of file gpu_oom_error.h.

Constructor & Destructor Documentation

◆ GPU_OOM_ERROR()

KIGFX::GPU_OOM_ERROR::GPU_OOM_ERROR ( const std::string & aMessage)
inlineexplicit

Definition at line 39 of file gpu_oom_error.h.


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