- Added functionality to detect GPU backends (HIP and NVIDIA) during runner registration, enhancing compatibility for Blender versions below 4.x. - Introduced a new method, DetectAndStoreGPUBackends, to download the latest Blender and run a detection script, storing the results for future rendering decisions. - Updated rendering logic to force CPU rendering when HIP is detected on systems with Blender < 4.x, ensuring stability and compatibility. - Enhanced the Context structure to include flags for GPU detection status, improving error handling and rendering decisions based on GPU availability.
17 lines
317 B
Go
17 lines
317 B
Go
package scripts
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed scripts/extract_metadata.py
|
|
var ExtractMetadata string
|
|
|
|
//go:embed scripts/unhide_objects.py
|
|
var UnhideObjects string
|
|
|
|
//go:embed scripts/render_blender.py.template
|
|
var RenderBlenderTemplate string
|
|
|
|
//go:embed scripts/detect_gpu_backends.py
|
|
var DetectGPUBackends string
|
|
|