Blender  V3.3
Namespaces | Macros | Functions | Variables
mtl_debug.hh File Reference
#include "BKE_global.h"
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

 blender
 
 blender::gpu
 
 blender::gpu::debug
 

Macros

#define EXPAND_ARGS(...)   , ##__VA_ARGS__
 
#define MTL_LOG_ERROR(info, ...)
 
#define MTL_LOG_WARNING(info, ...)
 
#define MTL_LOG_INFO(info, ...)
 

Functions

void blender::gpu::debug::mtl_debug_init ()
 

Variables

CLG_LogRef blender::gpu::debug::LOG = {"gpu.debug.metal"}
 

Macro Definition Documentation

◆ EXPAND_ARGS

#define EXPAND_ARGS (   ...)    , ##__VA_ARGS__

Definition at line 23 of file mtl_debug.hh.

◆ MTL_LOG_ERROR

#define MTL_LOG_ERROR (   info,
  ... 
)
Value:
{ \
if (G.debug & G_DEBUG_GPU) { \
CLG_logf(debug::LOG.type, \
"[Metal Viewport Error]", \
"", \
info EXPAND_ARGS(__VA_ARGS__)); \
} \
BLI_assert(false); \
}
@ G_DEBUG_GPU
Definition: BKE_global.h:193
@ CLG_SEVERITY_ERROR
Definition: CLG_log.h:88
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
#define G(x, y, z)
#define EXPAND_ARGS(...)
Definition: mtl_debug.hh:23
CLG_LogRef LOG
Definition: mtl_debug.mm:28

Definition at line 24 of file mtl_debug.hh.

◆ MTL_LOG_INFO

#define MTL_LOG_INFO (   info,
  ... 
)
Value:
{ \
if (G.debug & G_DEBUG_GPU) { \
CLG_logf(debug::LOG.type, \
"[Metal Viewport Info]", \
"", \
info EXPAND_ARGS(__VA_ARGS__)); \
} \
}
@ CLG_SEVERITY_INFO
Definition: CLG_log.h:86

Definition at line 47 of file mtl_debug.hh.

◆ MTL_LOG_WARNING

#define MTL_LOG_WARNING (   info,
  ... 
)
Value:
{ \
if (G.debug & G_DEBUG_GPU) { \
CLG_logf(debug::LOG.type, \
"[Metal Viewport Warning]", \
"", \
info EXPAND_ARGS(__VA_ARGS__)); \
} \
}
@ CLG_SEVERITY_WARN
Definition: CLG_log.h:87

Definition at line 36 of file mtl_debug.hh.