tests/vkrenderframework.cpp
bool VkRenderFramework::EnableDeviceProfileLayer() {
    if (InstanceLayerSupported("VK_LAYER_LUNARG_device_profile_api")) {
        if (VkTestFramework::m_devsim_layer) {
            assert(0 == strcmp(m_instance_layer_names.back(), "VK_LAYER_LUNARG_device_simulation"));
            m_instance_layer_names.pop_back();
            m_instance_layer_names.push_back("VK_LAYER_LUNARG_device_profile_api");
        } else {
            m_instance_layer_names.push_back("VK_LAYER_LUNARG_device_profile_api");
        }
    } else {
        printf("             Did not find VK_LAYER_LUNARG_device_profile_api layer; skipped.\n");
        return false;
    }
    return true;
}
// Enable device profile as last layer on stack overriding devsim if there, or return if not available
Enable device profile as last layer on stack overriding devsim if there, or return if not available
Enable device profile as last layer on stack overriding devsim if there or return if not available
bool VkRenderFramework::EnableDeviceProfileLayer() {
    if (InstanceLayerSupported("VK_LAYER_LUNARG_device_profile_api")) {
        if (VkTestFramework::m_devsim_layer) {
            assert(0 == strcmp(m_instance_layer_names.back(), "VK_LAYER_LUNARG_device_simulation"));
            m_instance_layer_names.pop_back();
            m_instance_layer_names.push_back("VK_LAYER_LUNARG_device_profile_api");
        } else {
            m_instance_layer_names.push_back("VK_LAYER_LUNARG_device_profile_api");
        }
    } else {
        printf("             Did not find VK_LAYER_LUNARG_device_profile_api layer; skipped.\n");
        return false;
    }
    return true;
}
bool VkRenderFramework :: EnableDeviceProfileLayer ( ) { if ( InstanceLayerSupported ( " " ) ) { if ( VkTestFramework :: m_devsim_layer ) { assert ( 0 == strcmp ( m_instance_layer_names . back ( ) , " " ) ) ; m_instance_layer_names . pop_back ( ) ; m_instance_layer_names . push_back ( " " ) ; } else { m_instance_layer_names . push_back ( " " ) ; } } else { printf ( " \n " ) ; return false ; } return true ; }
Enable device profile as last layer on stack overriding devsim if there, or return if not available
Enable device profile as last layer on stack overriding devsim if there or return if not available