Blender V5.0
gpu_platform.cc File Reference
#include <cstdint>
#include "MEM_guardedalloc.h"
#include "BLI_dynstr.h"
#include "BLI_string.h"
#include "BLI_string_utils.hh"
#include "BLI_vector.hh"
#include "GPU_platform.hh"
#include "gpu_platform_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::gpu

Functions

static char * blender::gpu::create_key (GPUSupportLevel support_level, const char *vendor, const char *renderer, const char *version)
static char * blender::gpu::create_gpu_name (const char *vendor, const char *renderer, const char *version)
C-API
GPUSupportLevel GPU_platform_support_level ()
const char * GPU_platform_vendor ()
const char * GPU_platform_renderer ()
const char * GPU_platform_version ()
const char * GPU_platform_support_level_key ()
const char * GPU_platform_gpu_name ()
GPUArchitectureType GPU_platform_architecture ()
bool GPU_type_matches (GPUDeviceType device, GPUOSType os, GPUDriverType driver)
bool GPU_type_matches_ex (GPUDeviceType device, GPUOSType os, GPUDriverType driver, GPUBackendType backend)
blender::Span< GPUDeviceGPU_platform_devices_list ()
blender::Span< uint8_t > GPU_platform_uuid ()
blender::Span< uint8_t > GPU_platform_luid ()
uint32_t GPU_platform_luid_node_mask ()

Variables

GPUPlatformGlobal blender::gpu::GPG

Detailed Description

Wrap OpenGL features such as textures, shaders and GLSL with checks for drivers and GPU support.

Definition in file gpu_platform.cc.

Function Documentation

◆ GPU_platform_architecture()

◆ GPU_platform_devices_list()

blender::Span< GPUDevice > GPU_platform_devices_list ( )

Definition at line 182 of file gpu_platform.cc.

References blender::gpu::GPG.

◆ GPU_platform_gpu_name()

const char * GPU_platform_gpu_name ( )

Definition at line 155 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by WM_platform_support_perform_checks().

◆ GPU_platform_luid()

blender::Span< uint8_t > GPU_platform_luid ( )

Definition at line 192 of file gpu_platform.cc.

References blender::gpu::GPG.

◆ GPU_platform_luid_node_mask()

uint32_t GPU_platform_luid_node_mask ( )

Definition at line 197 of file gpu_platform.cc.

References blender::gpu::GPG.

◆ GPU_platform_renderer()

const char * GPU_platform_renderer ( )

Definition at line 137 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by pygpu_platform_renderer_get().

◆ GPU_platform_support_level()

GPUSupportLevel GPU_platform_support_level ( )

Definition at line 125 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by WM_platform_support_perform_checks().

◆ GPU_platform_support_level_key()

const char * GPU_platform_support_level_key ( )

Definition at line 149 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by WM_platform_support_perform_checks().

◆ GPU_platform_uuid()

blender::Span< uint8_t > GPU_platform_uuid ( )

Definition at line 187 of file gpu_platform.cc.

References blender::gpu::GPG.

Referenced by BlenderDisplayDriver::graphics_interop_get_device().

◆ GPU_platform_vendor()

const char * GPU_platform_vendor ( )

Definition at line 131 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by pygpu_platform_vendor_get().

◆ GPU_platform_version()

const char * GPU_platform_version ( )

Definition at line 143 of file gpu_platform.cc.

References BLI_assert, and blender::gpu::GPG.

Referenced by pygpu_platform_version_get().

◆ GPU_type_matches()

◆ GPU_type_matches_ex()