mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
This commit bumps the `ios` branch from 5.0.0 alpha to 5.1.2 release. I merged v5.0-release first then v5.1-release. So it was a sequential merge. I'm just waiting to the approval of continuing development. The stuff that are missing (those are so close to implement): - #145484 iOS: Keyboard Input Support: https://projects.blender.org/blender/blender/pulls/145484 - #145702 iOS: Add clipboard Image: https://projects.blender.org/blender/blender/pulls/145702 - Fix QOS threading - Expose Downloads - UIScene Migration `make deps` needs to run two times. (still hacky....) OSL occurs racing conditions. Disclaimer: I used AI for searching in Documentation of Deps. So the implementation is by hand. **SACRED PINKY FINGER PROMISE** Pull Request: https://projects.blender.org/blender/blender/pulls/161073
29 lines
890 B
Python
29 lines
890 B
Python
# SPDX-FileCopyrightText: 2022 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
"""
|
|
Prints GPU back-end information to the console and exits.
|
|
|
|
Use this script as `blender --background --python gpu_info.py`.
|
|
"""
|
|
import bpy
|
|
import sys
|
|
|
|
# Render with workbench to initialize the GPU backend otherwise it would fail when running in
|
|
# background mode as the GPU backend won't be initialized.
|
|
scene = bpy.context.scene
|
|
scene.render.resolution_x = 1
|
|
scene.render.resolution_y = 1
|
|
scene.render.engine = "BLENDER_WORKBENCH"
|
|
bpy.ops.render.render(animation=False, write_still=False)
|
|
|
|
# Import GPU module only after GPU backend has been initialized.
|
|
import gpu
|
|
|
|
print('GPU_VENDOR:' + gpu.platform.vendor_get())
|
|
print('GPU_RENDERER:' + gpu.platform.renderer_get())
|
|
print('GPU_VERSION:' + gpu.platform.version_get())
|
|
print('GPU_DEVICE_TYPE:' + gpu.platform.device_type_get())
|
|
|
|
sys.exit(0)
|