Vulkan/Device: Add proper support for all device functions and extensions

At least I hope that's all


Former-commit-id: acf25110dc4598f0bb59737d09521570ca39e4ef
This commit is contained in:
Lynix
2016-04-30 11:43:35 +02:00
parent 0b725e1090
commit cc9d2c6ab2
3 changed files with 239 additions and 2 deletions

View File

@@ -51,6 +51,16 @@ namespace Nz
return m_lastErrorCode;
}
inline bool Device::IsExtensionLoaded(const String& extensionName)
{
return m_loadedExtensions.count(extensionName) > 0;
}
inline bool Device::IsLayerLoaded(const String& layerName)
{
return m_loadedLayers.count(layerName) > 0;
}
inline bool Device::WaitForIdle()
{
m_lastErrorCode = vkDeviceWaitIdle(m_device);