From 3941b472dedd0836b5e4970460fbf0e38a42e4e4 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 30 Sep 2020 17:01:15 -0700 Subject: A number of updates to support Metal backend --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 93295972..e8263232 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1743,6 +1743,10 @@ struct DeviceCaps { return DevType == RENDER_DEVICE_TYPE_VULKAN; } + bool IsMetalDevice()const + { + return DevType == RENDER_DEVICE_TYPE_METAL; + } struct NDCAttribs { -- cgit v1.2.3