Add function to check if running on AMD

This commit is contained in:
baldurk committed 2016-02-10 17:13:02 +01:00
1 parent a67f559308
commit c8ade743a2
1 file changed
+2
+2
View File
@@ -278,6 +278,8 @@ private:
{ return m_PhysicalDeviceData.features; }
const VkPhysicalDeviceProperties &GetDeviceProps()
{ return m_PhysicalDeviceData.props; }
const bool IsAMD()
{ return m_PhysicalDeviceData.props.vendorID == 0x1002; }
const VkFormatProperties &GetFormatProperties(VkFormat f)
{ return m_PhysicalDeviceData.fmtprops[f]; }