Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_extensions.h
- This file was copied to source/blender/gpu/GPU_platform.h.
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
| bool GPU_context_local_shaders_workaround(void); | bool GPU_context_local_shaders_workaround(void); | ||||
| bool GPU_crappy_amd_driver(void); | bool GPU_crappy_amd_driver(void); | ||||
| bool GPU_mem_stats_supported(void); | bool GPU_mem_stats_supported(void); | ||||
| void GPU_mem_stats_get(int *totalmem, int *freemem); | void GPU_mem_stats_get(int *totalmem, int *freemem); | ||||
| void GPU_code_generate_glsl_lib(void); | void GPU_code_generate_glsl_lib(void); | ||||
| /* GPU Types */ | |||||
| typedef enum eGPUDeviceType { | |||||
| GPU_DEVICE_NVIDIA = (1 << 0), | |||||
| GPU_DEVICE_ATI = (1 << 1), | |||||
| GPU_DEVICE_INTEL = (1 << 2), | |||||
| GPU_DEVICE_INTEL_UHD = (1 << 3), | |||||
| GPU_DEVICE_SOFTWARE = (1 << 4), | |||||
| GPU_DEVICE_UNKNOWN = (1 << 5), | |||||
| GPU_DEVICE_ANY = (0xff), | |||||
| } eGPUDeviceType; | |||||
| typedef enum eGPUOSType { | |||||
| GPU_OS_WIN = (1 << 8), | |||||
| GPU_OS_MAC = (1 << 9), | |||||
| GPU_OS_UNIX = (1 << 10), | |||||
| GPU_OS_ANY = (0xff00), | |||||
| } eGPUOSType; | |||||
| typedef enum eGPUDriverType { | |||||
| GPU_DRIVER_OFFICIAL = (1 << 16), | |||||
| GPU_DRIVER_OPENSOURCE = (1 << 17), | |||||
| GPU_DRIVER_SOFTWARE = (1 << 18), | |||||
| GPU_DRIVER_ANY = (0xff0000), | |||||
| } eGPUDriverType; | |||||
| bool GPU_type_matches(eGPUDeviceType device, eGPUOSType os, eGPUDriverType driver); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __GPU_EXTENSIONS_H__ */ | #endif /* __GPU_EXTENSIONS_H__ */ | ||||