Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
vulkan_interface.h File Reference
#include <string>
#include "flutter/fml/build_config.h"
#include "flutter/fml/logging.h"
#include <vulkan/vulkan.h>

Go to the source code of this file.

Namespaces

namespace  vulkan
 

Macros

#define VK_CALL_LOG_ERROR(expression)   VK_CALL_LOG(expression, ERROR)
 
#define VK_CALL_LOG_FATAL(expression)   VK_CALL_LOG(expression, FATAL)
 
#define VK_CALL_LOG(expression, severity)
 

Functions

std::string vulkan::VulkanResultToString (VkResult result)
 

Macro Definition Documentation

◆ VK_CALL_LOG

#define VK_CALL_LOG (   expression,
  severity 
)
Value:
({ \
__typeof__(expression) _rc = (expression); \
if (_rc != VK_SUCCESS) { \
FML_LOG(severity) << "Vulkan call '" << #expression \
<< "' failed with error " \
} \
_rc; \
})
std::string VulkanResultToString(VkResult result)
@ VK_SUCCESS
Definition: vulkan_core.h:141

Definition at line 34 of file vulkan_interface.h.

◆ VK_CALL_LOG_ERROR

#define VK_CALL_LOG_ERROR (   expression)    VK_CALL_LOG(expression, ERROR)

Definition at line 30 of file vulkan_interface.h.

◆ VK_CALL_LOG_FATAL

#define VK_CALL_LOG_FATAL (   expression)    VK_CALL_LOG(expression, FATAL)

Definition at line 32 of file vulkan_interface.h.