Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 at line 34 of file vulkan_interface.h.

35 { \
36 __typeof__(expression) _rc = (expression); \
37 if (_rc != VK_SUCCESS) { \
38 FML_LOG(severity) << "Vulkan call '" << #expression \
39 << "' failed with error " \
41 } \
42 _rc; \
43 })

◆ 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.