Blender  V2.93
Public Member Functions | Public Attributes | List of all members
blender::gpu::GPUPlatformGlobal Class Reference

#include <gpu_platform_private.hh>

Public Member Functions

void create_key (eGPUSupportLevel support_level, const char *vendor, const char *renderer, const char *version)
 
void create_gpu_name (const char *vendor, const char *renderer, const char *version)
 
void clear (void)
 

Public Attributes

bool initialized = false
 
eGPUDeviceType device
 
eGPUOSType os
 
eGPUDriverType driver
 
eGPUSupportLevel support_level
 
char * support_key = nullptr
 
char * gpu_name = nullptr
 

Detailed Description

Definition at line 30 of file gpu_platform_private.hh.

Member Function Documentation

◆ clear()

void blender::gpu::GPUPlatformGlobal::clear ( void  )

Definition at line 80 of file gpu_platform.cc.

References blender::gpu::GPG, gpu_name, initialized, MEM_SAFE_FREE, and support_key.

◆ create_gpu_name()

void blender::gpu::GPUPlatformGlobal::create_gpu_name ( const char *  vendor,
const char *  renderer,
const char *  version 
)

◆ create_key()

void blender::gpu::GPUPlatformGlobal::create_key ( eGPUSupportLevel  support_level,
const char *  vendor,
const char *  renderer,
const char *  version 
)

Member Data Documentation

◆ device

eGPUDeviceType blender::gpu::GPUPlatformGlobal::device

Definition at line 33 of file gpu_platform_private.hh.

Referenced by GPU_type_matches().

◆ driver

eGPUDriverType blender::gpu::GPUPlatformGlobal::driver

Definition at line 35 of file gpu_platform_private.hh.

Referenced by GPU_type_matches().

◆ gpu_name

char* blender::gpu::GPUPlatformGlobal::gpu_name = nullptr

Definition at line 38 of file gpu_platform_private.hh.

Referenced by clear(), create_gpu_name(), and GPU_platform_gpu_name().

◆ initialized

bool blender::gpu::GPUPlatformGlobal::initialized = false

Definition at line 32 of file gpu_platform_private.hh.

Referenced by clear().

◆ os

eGPUOSType blender::gpu::GPUPlatformGlobal::os

Definition at line 34 of file gpu_platform_private.hh.

Referenced by GPU_type_matches().

◆ support_key

char* blender::gpu::GPUPlatformGlobal::support_key = nullptr

Definition at line 37 of file gpu_platform_private.hh.

Referenced by clear(), create_key(), and GPU_platform_support_level_key().

◆ support_level

eGPUSupportLevel blender::gpu::GPUPlatformGlobal::support_level

Definition at line 36 of file gpu_platform_private.hh.

Referenced by create_key(), and GPU_platform_support_level().


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