Blender  V3.3
Functions | Variables
GHOST_ContextCGL.mm File Reference
#include "GHOST_ContextCGL.h"
#include <Cocoa/Cocoa.h>
#include <Metal/Metal.h>
#include <QuartzCore/QuartzCore.h>
#include <cassert>
#include <vector>

Go to the source code of this file.

Functions

static void ghost_fatal_error_dialog (const char *msg)
 
static void makeAttribList (std::vector< NSOpenGLPixelFormatAttribute > &attribs, bool coreProfile, bool stereoVisual, bool needAlpha, bool softwareGL, bool increasedSamplerLimit)
 

Variables

static const MTLPixelFormat METAL_FRAMEBUFFERPIXEL_FORMAT = MTLPixelFormatBGRA8Unorm
 
static const OSType METAL_CORE_VIDEO_PIXEL_FORMAT = kCVPixelFormatType_32BGRA
 

Detailed Description

Definition of GHOST_ContextCGL class.

Definition in file GHOST_ContextCGL.mm.

Function Documentation

◆ ghost_fatal_error_dialog()

static void ghost_fatal_error_dialog ( const char *  msg)
static

Definition at line 25 of file GHOST_ContextCGL.mm.

References init.

◆ makeAttribList()

static void makeAttribList ( std::vector< NSOpenGLPixelFormatAttribute > &  attribs,
bool  coreProfile,
bool  stereoVisual,
bool  needAlpha,
bool  softwareGL,
bool  increasedSamplerLimit 
)
static

Definition at line 199 of file GHOST_ContextCGL.mm.

Referenced by GHOST_ContextCGL::initializeDrawingContext().

Variable Documentation

◆ METAL_CORE_VIDEO_PIXEL_FORMAT

const OSType METAL_CORE_VIDEO_PIXEL_FORMAT = kCVPixelFormatType_32BGRA
static

Definition at line 378 of file GHOST_ContextCGL.mm.

◆ METAL_FRAMEBUFFERPIXEL_FORMAT

const MTLPixelFormat METAL_FRAMEBUFFERPIXEL_FORMAT = MTLPixelFormatBGRA8Unorm
static

Definition at line 377 of file GHOST_ContextCGL.mm.