Diligent Engine  v.2.4.g
Macros
pch.h File Reference
#include <vector>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include "GLStubs.h"
#include "Errors.hpp"
#include "PlatformDefinitions.h"
#include "RefCntAutoPtr.hpp"
#include "DebugUtilities.hpp"
#include "GLObjectWrapper.hpp"
#include "ValidatedCast.hpp"
#include "RenderDevice.h"
#include "BaseInterfacesGL.h"

Go to the source code of this file.

Macros

#define CHECK_GL_ERROR(...)
 
#define CHECK_GL_ERROR_AND_THROW(...)
 
#define DEV_CHECK_GL_ERROR(...)
 

Macro Definition Documentation

◆ CHECK_GL_ERROR

#define CHECK_GL_ERROR (   ...)
Value:
do \
{ \
auto err = glGetError(); \
if (err != GL_NO_ERROR) \
{ \
LogError<false>(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \
UNEXPECTED("Error"); \
} \
} while (false)

◆ CHECK_GL_ERROR_AND_THROW

#define CHECK_GL_ERROR_AND_THROW (   ...)
Value:
do \
{ \
auto err = glGetError(); \
if (err != GL_NO_ERROR) \
LogError<true>(/*IsFatal=*/false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \
} while (false)

◆ DEV_CHECK_GL_ERROR

#define DEV_CHECK_GL_ERROR (   ...)
Value:
do \
{ \
} while (false)