WIP: Vulkan: Workbench #107886
|
@ -610,12 +610,6 @@ class USERPREF_PT_system_cycles_devices(SystemPanel, CenterAlignMixIn, Panel):
|
||||||
class USERPREF_PT_system_gpu_backend(SystemPanel, CenterAlignMixIn, Panel):
|
class USERPREF_PT_system_gpu_backend(SystemPanel, CenterAlignMixIn, Panel):
|
||||||
bl_label = "GPU Backend"
|
bl_label = "GPU Backend"
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, _context):
|
|
||||||
# Only for Apple so far
|
|
||||||
import sys
|
|
||||||
return sys.platform == "darwin"
|
|
||||||
|
|
||||||
def draw_centered(self, context, layout):
|
def draw_centered(self, context, layout):
|
||||||
import gpu
|
import gpu
|
||||||
prefs = context.preferences
|
prefs = context.preferences
|
||||||
|
|
|
@ -377,6 +377,14 @@ if(WITH_XR_OPENXR)
|
||||||
add_definitions(-DWITH_XR_OPENXR)
|
add_definitions(-DWITH_XR_OPENXR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WITH_VULKAN_METAL)
|
||||||
|
add_definitions(-DWITH_VULKAN_METAL)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WITH_VULKAN_BACKEND)
|
||||||
|
add_definitions(-DWITH_VULKAN_BACKEND)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WITH_GMP)
|
if(WITH_GMP)
|
||||||
add_definitions(-DWITH_GMP)
|
add_definitions(-DWITH_GMP)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue