summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-03 15:39:36 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-03 15:39:36 +0000
commit0febba9c13839b0d51d80b6a279fb535ba0f66ad (patch)
tree31e6483d64b2dd4dcc1e9017ff5119b51e5cadc7 /Graphics/GraphicsEngine
parentFixed issues with RTV/DSV clears and 3D texture views in Vulkan (diff)
downloadDiligentCore-0febba9c13839b0d51d80b6a279fb535ba0f66ad.tar.gz
DiligentCore-0febba9c13839b0d51d80b6a279fb535ba0f66ad.zip
Updated projection functions in the math lib to take IsGL instead of IsDirectX flag
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceCaps.h13
1 files changed, 13 insertions, 0 deletions
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;
+ }
};
}