System info: Added GPU device type and feature support.

Adds more information to System info to help triaging/debugging.
This commit is contained in:
Jeroen Bakker 2022-09-26 08:36:05 +02:00
parent 267aee514a
commit 6075b04cf9
1 changed files with 6 additions and 0 deletions

View File

@ -176,6 +176,7 @@ def write_sysinfo(filepath):
output.write("renderer:\t%r\n" % gpu.platform.renderer_get())
output.write("vendor:\t\t%r\n" % gpu.platform.vendor_get())
output.write("version:\t%r\n" % gpu.platform.version_get())
output.write("device type:\t%r\n" % gpu.platform.device_type_get())
output.write("extensions:\n")
glext = sorted(gpu.capabilities.extensions_get())
@ -196,6 +197,11 @@ def write_sysinfo(filepath):
output.write("Maximum Fragment Image Units:\t%d\n" % gpu.capabilities.max_textures_frag_get())
output.write("Maximum Pipeline Image Units:\t%d\n" % gpu.capabilities.max_textures_get())
output.write("\nFeatures:\n")
output.write("Compute Shader Support: \t%d\n" % gpu.capabilities.compute_shader_support_get())
output.write("Shader Storage Buffer Objects Support:\t%d\n" % gpu.capabilities.shader_storage_buffer_objects_support_get())
output.write("Image Load/Store Support: \t%d\n" % gpu.capabilities.shader_image_load_store_support_get())
if bpy.app.build_options.cycles:
import cycles
output.write(title("Cycles"))