Blender V4.3
blender::gpu::GPUPlatformGlobal Class Reference

#include <gpu_platform_private.hh>

Public Member Functions

void init (eGPUDeviceType gpu_device, eGPUOSType os_type, eGPUDriverType driver_type, eGPUSupportLevel gpu_support_level, eGPUBackendType backend, const char *vendor_str, const char *renderer_str, const char *version_str, GPUArchitectureType arch_type)
void clear ()

Public Attributes

bool initialized = false
eGPUDeviceType device
eGPUOSType os
eGPUDriverType driver
eGPUSupportLevel support_level
char * vendor = nullptr
char * renderer = nullptr
char * version = nullptr
char * support_key = nullptr
char * gpu_name = nullptr
eGPUBackendType backend = GPU_BACKEND_NONE
GPUArchitectureType architecture_type = GPU_ARCHITECTURE_IMR
Vector< GPUDevicedevices

Detailed Description

Definition at line 17 of file gpu_platform_private.hh.

Member Function Documentation

◆ clear()

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

Definition at line 99 of file gpu_platform.cc.

References devices, gpu_name, initialized, MEM_SAFE_FREE, renderer, support_key, vendor, and version.

Referenced by init().

◆ init()

void blender::gpu::GPUPlatformGlobal::init ( eGPUDeviceType gpu_device,
eGPUOSType os_type,
eGPUDriverType driver_type,
eGPUSupportLevel gpu_support_level,
eGPUBackendType backend,
const char * vendor_str,
const char * renderer_str,
const char * version_str,
GPUArchitectureType arch_type )

Member Data Documentation

◆ architecture_type

GPUArchitectureType blender::gpu::GPUPlatformGlobal::architecture_type = GPU_ARCHITECTURE_IMR

Definition at line 30 of file gpu_platform_private.hh.

Referenced by init().

◆ backend

eGPUBackendType blender::gpu::GPUPlatformGlobal::backend = GPU_BACKEND_NONE

Definition at line 29 of file gpu_platform_private.hh.

Referenced by init().

◆ device

eGPUDeviceType blender::gpu::GPUPlatformGlobal::device

Definition at line 20 of file gpu_platform_private.hh.

Referenced by init().

◆ devices

Vector<GPUDevice> blender::gpu::GPUPlatformGlobal::devices

Definition at line 31 of file gpu_platform_private.hh.

Referenced by clear().

◆ driver

eGPUDriverType blender::gpu::GPUPlatformGlobal::driver

Definition at line 22 of file gpu_platform_private.hh.

Referenced by init().

◆ gpu_name

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

Definition at line 28 of file gpu_platform_private.hh.

Referenced by clear(), and init().

◆ initialized

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

Definition at line 19 of file gpu_platform_private.hh.

Referenced by clear(), and init().

◆ os

eGPUOSType blender::gpu::GPUPlatformGlobal::os

Definition at line 21 of file gpu_platform_private.hh.

Referenced by init().

◆ renderer

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

Definition at line 25 of file gpu_platform_private.hh.

Referenced by clear(), and init().

◆ support_key

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

Definition at line 27 of file gpu_platform_private.hh.

Referenced by clear(), and init().

◆ support_level

eGPUSupportLevel blender::gpu::GPUPlatformGlobal::support_level

Definition at line 23 of file gpu_platform_private.hh.

Referenced by init().

◆ vendor

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

Definition at line 24 of file gpu_platform_private.hh.

Referenced by clear(), and init().

◆ version

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

Definition at line 26 of file gpu_platform_private.hh.

Referenced by clear(), and init().


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