Add function to check if running on AMD

This commit is contained in:
baldurk
2016-02-10 16:59:51 +01:00
parent a67f559308
commit c8ade743a2
+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]; }