Berserk
Namespaces | Macros | Functions
GLDevice.cpp File Reference
#include <core/Engine.hpp>
#include <core/math/MathUtils3d.hpp>
#include <rhi/opengl/GLBuffer.hpp>
#include <rhi/opengl/GLCommandList.hpp>
#include <rhi/opengl/GLDevice.hpp>
#include <rhi/opengl/GLFramebuffer.hpp>
#include <rhi/opengl/GLGraphicsPipeline.hpp>
#include <rhi/opengl/GLRenderPass.hpp>
#include <rhi/opengl/GLResourceSet.hpp>
#include <rhi/opengl/GLSampler.hpp>
#include <rhi/opengl/GLTexture.hpp>
#include <rhi/opengl/GLVertexDeclaration.hpp>
#include <cstring>
#include <utility>
Include dependency graph for GLDevice.cpp:

Namespaces

 BRK_NS_BEGIN
 

Macros

#define BRK_GL_CREATE_RESOURCE(type, gl_type, ...)
 

Functions

bool BRK_NS_BEGIN::IsExtensionSupported (const char *name)
 

Macro Definition Documentation

◆ BRK_GL_CREATE_RESOURCE

#define BRK_GL_CREATE_RESOURCE (   type,
  gl_type,
  ... 
)
Value:
Ref<gl_type> object(new gl_type(__VA_ARGS__)); \
if (mRHIThread->OnThread()) \
object->Initialize(); \
else \
mRHIThread->EnqueueBefore([=]() { object->Initialize(); }); \
return object.Cast<type>()
Automates reference counting and behaves as shared smart pointer.
Definition: Ref.hpp:46