From 0febba9c13839b0d51d80b6a279fb535ba0f66ad Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 3 Jul 2018 08:39:36 -0700 Subject: Updated projection functions in the math lib to take IsGL instead of IsDirectX flag --- Graphics/GraphicsEngine/interface/DeviceCaps.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DeviceCaps.h b/Graphics/GraphicsEngine/interface/DeviceCaps.h index b56e4d33..b4e00081 100644 --- a/Graphics/GraphicsEngine/interface/DeviceCaps.h +++ b/Graphics/GraphicsEngine/interface/DeviceCaps.h @@ -116,5 +116,18 @@ namespace Diligent /// Texture capabilities. See Diligent::TextureCaps. TextureCaps TexCaps; + + bool IsGLDevice()const + { + return DevType == DeviceType::OpenGL || DevType == DeviceType::OpenGLES; + } + bool IsD3DDevice()const + { + return DevType == DeviceType::D3D11 || DevType == DeviceType::D3D12; + } + bool IsVulkanDevice()const + { + return DevType == DeviceType::Vulkan; + } }; } -- cgit v1.2.3